diff -r dde0338cb539 -r 0e4e63f6f567 client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml.cs --- 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(HeaderProductionElement_SelectedPart); + } + + void HeaderProductionElement_SelectedPart(object sender, HeaderProductionEventArgs e) + { + MessageBox.Show(e.ChapterType.ToString()); } } }