client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml.cs
changeset 17 0e4e63f6f567
parent 0 249d70e7b32d
child 18 66911d0f0eb6
--- a/client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml.cs	Thu Dec 03 16:05:43 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml.cs	Thu Dec 03 16:05:57 2009 +0100
@@ -9,14 +9,22 @@
 using System.Windows.Media;
 using System.Windows.Media.Animation;
 using System.Windows.Shapes;
-
+using Iri.Modernisation.BaseMVVM.Commands;
 namespace Iri.Modernisation.Controls.View
 {
     public partial class ProductionView : UserControl
     {
         public ProductionView()
         {
+            Commands.Initialize();
             InitializeComponent();
+            HeaderProductionElement.SelectedPart += Commands.ProductionTimeLine.EditorPartSelected.Execute;
+            //HeaderProductionElement.SelectedPart += new EventHandler<HeaderProductionEventArgs>(HeaderProductionElement_SelectedPart);
+        }
+
+        void HeaderProductionElement_SelectedPart(object sender, HeaderProductionEventArgs e)
+        {
+            MessageBox.Show(e.ChapterType.ToString());
         }
     }
 }