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<SLExtensions.Input.ExecutedEventArgs>(EditorPartSelected_Executed);
-
+ Commands.ProductionTimeLine.EditorPartFinished.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(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;
}