client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs
changeset 0 249d70e7b32d
child 17 0e4e63f6f567
equal deleted inserted replaced
-1:000000000000 0:249d70e7b32d
       
     1 using System;
       
     2 using System.Net;
       
     3 using System.Windows;
       
     4 using System.Windows.Controls;
       
     5 using System.Windows.Documents;
       
     6 using System.Windows.Ink;
       
     7 using System.Windows.Input;
       
     8 using System.Windows.Media;
       
     9 using System.Windows.Media.Animation;
       
    10 using System.Windows.Shapes;
       
    11 using Iri.Modernisation.Data.Models;
       
    12 using Iri.Modernisation.BaseMVVM.Commands;
       
    13 using Iri.Modernisation.BaseMVVM.ViewModel;
       
    14 using System.Collections.Generic;
       
    15 namespace Iri.Modernisation.Controls.ViewModel
       
    16 {
       
    17     public class ProductionTimeLineVM : BaseMVVM.ViewModel.ViewModel
       
    18     {
       
    19 
       
    20      
       
    21 
       
    22         private VideoBook _newBook;
       
    23         private List<VideoSequence>[] _listVideoSequences = new List<VideoSequence>[4];
       
    24         public List<VideoSequence> SelectedVideoSequences
       
    25         {
       
    26             get
       
    27             {
       
    28                 return _listVideoSequences[SelectedChapter];
       
    29             }
       
    30             set
       
    31             {
       
    32                 _listVideoSequences[SelectedChapter] = value;
       
    33                 _newBook.Chapters[SelectedChapter].VideoSequences = value;
       
    34                 OnPropertyChanged("SelectedVideoSequences");
       
    35             }
       
    36         }
       
    37         private int _selectedChapter=0;
       
    38         public int SelectedChapter
       
    39         {
       
    40             get
       
    41             {
       
    42                 return _selectedChapter;
       
    43             }
       
    44             set
       
    45             {
       
    46                 _selectedChapter = value;
       
    47                 OnPropertyChanged("SelectedChapter");
       
    48             }
       
    49         }
       
    50 
       
    51        
       
    52     
       
    53         private List<SegmentIndex>[] _listSegmentIndex = new List<SegmentIndex>[4];
       
    54         public List<SegmentIndex> SelectedIndex
       
    55         {
       
    56             get
       
    57             {
       
    58                 return _listSegmentIndex[SelectedChapter];
       
    59             }
       
    60             set
       
    61             {
       
    62                 _listSegmentIndex[SelectedChapter] = value;
       
    63                 _newBook.Chapters[SelectedChapter].Index = value;
       
    64                 OnPropertyChanged("SelectedIndex");
       
    65             }
       
    66         }
       
    67 
       
    68         public ProductionTimeLineVM()
       
    69         {
       
    70             _newBook = new VideoBook();
       
    71         }
       
    72     }
       
    73 }