diff -r 44a2dc869e28 -r f292db96b050 client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs --- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Tue Dec 22 16:22:22 2009 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Mon Jan 04 10:29:39 2010 +0100 @@ -84,8 +84,9 @@ { DataContext = new CustomableVideoElementVM(Vs) { - Chapter = (VideoChapterType)intChapter - }, + ChapterColor = FactoryVideoLivre.VideoChapterDescriptions[intChapter].Color + } + }; _temp.MouseLeftButtonDown += new MouseButtonEventHandler(CustomableVideoElement_MouseLeftButtonDown); if ((VideoChapterType)intChapter == ((ProductionTimeLineVM)this.DataContext).SelectedBookChapter.Type) @@ -103,17 +104,20 @@ else { AnnotationTimeStrip.Children.Clear(); - + int intChapter = 0; foreach (ObservableCollection Ocsi in ((ProductionTimeLineVM)this.DataContext).ListIndex) { foreach (SegmentIndex Si in Ocsi) { // PolemicElementControl an = new PolemicElementControl() { IsEnabled = false }; - CustomableIndexElement an = new CustomableIndexElement() + CustomableIndexElement an = new CustomableIndexElement() + { + DataContext = new CustomableIndexElementVM(Si) { - DataContext = new CustomableIndexElementVM(Si) - }; + ChapterColor = FactoryVideoLivre.VideoChapterDescriptions[intChapter].Color + } + }; //an.DataContext = new PolemicElementVM(Si); @@ -125,6 +129,7 @@ } + intChapter++; }