diff -r 0e4e63f6f567 -r 66911d0f0eb6 client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs --- a/client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs Thu Dec 03 16:05:57 2009 +0100 +++ b/client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs Mon Dec 07 10:36:55 2009 +0100 @@ -118,11 +118,19 @@ Commands.ProductionTimeLine.EditorPartSelected.Executed += new EventHandler(EditorPartSelected_Executed); - + Commands.ProductionTimeLine.EditorPartFinished.Executed += new EventHandler(EditorPartFinished_Executed); } + void EditorPartFinished_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) + { + SelectedChapter = -1; + + } + void EditorPartSelected_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) { + + SelectedChapter = (int)((HeaderProductionEventArgs)e.Source).ChapterType; SelectedChapterType = ((HeaderProductionEventArgs)e.Source).ChapterType ; IsIndexing = ((HeaderProductionEventArgs)e.Source).IsIndexPart; }