client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs Wed Nov 18 15:30:31 2009 +0100
@@ -0,0 +1,73 @@
+using System;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using Iri.Modernisation.Data.Models;
+using Iri.Modernisation.BaseMVVM.Commands;
+using Iri.Modernisation.BaseMVVM.ViewModel;
+using System.Collections.Generic;
+namespace Iri.Modernisation.Controls.ViewModel
+{
+ public class ProductionTimeLineVM : BaseMVVM.ViewModel.ViewModel
+ {
+
+
+
+ private VideoBook _newBook;
+ private List<VideoSequence>[] _listVideoSequences = new List<VideoSequence>[4];
+ public List<VideoSequence> SelectedVideoSequences
+ {
+ get
+ {
+ return _listVideoSequences[SelectedChapter];
+ }
+ set
+ {
+ _listVideoSequences[SelectedChapter] = value;
+ _newBook.Chapters[SelectedChapter].VideoSequences = value;
+ OnPropertyChanged("SelectedVideoSequences");
+ }
+ }
+ private int _selectedChapter=0;
+ public int SelectedChapter
+ {
+ get
+ {
+ return _selectedChapter;
+ }
+ set
+ {
+ _selectedChapter = value;
+ OnPropertyChanged("SelectedChapter");
+ }
+ }
+
+
+
+ private List<SegmentIndex>[] _listSegmentIndex = new List<SegmentIndex>[4];
+ public List<SegmentIndex> SelectedIndex
+ {
+ get
+ {
+ return _listSegmentIndex[SelectedChapter];
+ }
+ set
+ {
+ _listSegmentIndex[SelectedChapter] = value;
+ _newBook.Chapters[SelectedChapter].Index = value;
+ OnPropertyChanged("SelectedIndex");
+ }
+ }
+
+ public ProductionTimeLineVM()
+ {
+ _newBook = new VideoBook();
+ }
+ }
+}