client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs
changeset 18 66911d0f0eb6
parent 17 0e4e63f6f567
child 19 7d044e7562ea
--- 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;
         }