266 Commands.ProductionTimeLine.EditorPartFinished.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(EditorPartFinished_Executed); |
266 Commands.ProductionTimeLine.EditorPartFinished.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(EditorPartFinished_Executed); |
267 Commands.ProductionView.ClickAddIndex.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(ClickAddIndex_Executed); |
267 Commands.ProductionView.ClickAddIndex.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(ClickAddIndex_Executed); |
268 Commands.TimeChange.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(TimeChange_Executed); |
268 Commands.TimeChange.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(TimeChange_Executed); |
269 #endregion |
269 #endregion |
270 |
270 |
|
271 |
271 #region VideoSequences CollectionChanged |
272 #region VideoSequences CollectionChanged |
272 _listVideoSequences[0].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
273 foreach (ObservableCollection<VideoSequence> Ocvs in _listVideoSequences) |
273 _listVideoSequences[1].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
274 { |
274 _listVideoSequences[2].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
275 Ocvs.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
275 _listVideoSequences[3].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
276 } |
276 #endregion |
277 #endregion |
277 |
278 |
278 #region SegmentIndex CollectionChanged |
279 #region SegmentIndex CollectionChanged |
279 _listSegmentIndex[0].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
280 foreach (ObservableCollection<SegmentIndex> Ocsi in _listSegmentIndex) |
280 _listSegmentIndex[1].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
281 { |
281 _listSegmentIndex[2].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
282 Ocsi.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
282 _listSegmentIndex[3].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged); |
283 } |
283 #endregion |
284 #endregion |
284 } |
285 } |
285 public ProductionTimeLineVM() |
286 public ProductionTimeLineVM() |
286 { |
287 { |
287 _newBook = new VideoBook(); |
288 _newBook = new VideoBook(); |
288 _listVideoSequences = new ObservableCollection<VideoSequence>[4] |
289 |
289 { |
290 _listVideoSequences = new ObservableCollection<VideoSequence>[FactoryVideoLivre.NumberOfChapters]; |
290 new ObservableCollection<VideoSequence>(), |
291 _listSegmentIndex = new ObservableCollection<SegmentIndex>[FactoryVideoLivre.NumberOfChapters]; |
291 new ObservableCollection<VideoSequence>(), |
292 |
292 new ObservableCollection<VideoSequence>(), |
293 for (int i = 0; i<FactoryVideoLivre.NumberOfChapters;i++ ) |
293 new ObservableCollection<VideoSequence>() |
294 { |
294 }; |
295 _listVideoSequences[i] = new ObservableCollection<VideoSequence>(); |
295 _listSegmentIndex = new ObservableCollection<SegmentIndex>[4] |
296 _listSegmentIndex[i] = new ObservableCollection<SegmentIndex>(); |
296 { |
297 } |
297 new ObservableCollection<SegmentIndex>(), |
298 |
298 new ObservableCollection<SegmentIndex>(), |
299 |
299 new ObservableCollection<SegmentIndex>(), |
|
300 new ObservableCollection<SegmentIndex>() |
|
301 }; |
|
302 // PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ProductionTimeLineVM_PropertyChanged); |
300 // PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ProductionTimeLineVM_PropertyChanged); |
303 // SelectedVideoSequences = new ObservableCollection<VideoSequence>(); |
301 // SelectedVideoSequences = new ObservableCollection<VideoSequence>(); |
304 InitializeCommands(); |
302 InitializeCommands(); |
305 } |
303 } |
306 |
304 |