client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs
--- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Fri Dec 11 10:48:58 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Mon Dec 14 09:56:55 2009 +0100
@@ -107,6 +107,7 @@
an.MouseLeftButtonUp += new MouseButtonEventHandler(an_MouseLeftButtonUp);
//((ProductionTimeLineVM)DataContext).SelectedBookChapter);
AnnotationTimeStrip.Children.Add(an);
+
}
@@ -148,6 +149,28 @@
_comePoint = e.GetPosition(((CustomableIndexElement)sender));
_isTrimRightCapturated = true;
}
+ foreach(ObservableCollection<SegmentIndex> Ocsi in ((ProductionTimeLineVM)DataContext).ListIndex)
+ {
+ foreach (SegmentIndex Si in Ocsi )
+ {
+
+ if (((CustomableIndexElementVM)_selectedIndex.DataContext).SegmentIndex == Si)
+ {
+ if (Ocsi == ((ProductionTimeLineVM)DataContext).SelectedIndex)
+ {
+ Commands.ProductionTimeLine.IndexSelected.Execute(true,Si);
+ }
+ else
+ {
+
+ Commands.ProductionTimeLine.IndexSelected.Execute(false, Si);
+ }
+
+ }
+ }
+ }
+
+
}
private void AddSequenceButton_Click(object sender, System.Windows.RoutedEventArgs e)