equal
deleted
inserted
replaced
10 using System.Windows.Shapes; |
10 using System.Windows.Shapes; |
11 using System.Collections.Generic; |
11 using System.Collections.Generic; |
12 using Iri.Modernisation.Data.Models; |
12 using Iri.Modernisation.Data.Models; |
13 using Iri.Modernisation.BaseMVVM.Commands; |
13 using Iri.Modernisation.BaseMVVM.Commands; |
14 using Iri.Modernisation.BaseMVVM.ViewModel; |
14 using Iri.Modernisation.BaseMVVM.ViewModel; |
|
15 using System.Collections.ObjectModel; |
15 namespace Iri.Modernisation.Controls.ViewModel |
16 namespace Iri.Modernisation.Controls.ViewModel |
16 { |
17 { |
17 /// <summary> |
18 /// <summary> |
18 /// ViewModel de Main |
19 /// ViewModel de Main |
19 /// </summary> |
20 /// </summary> |
85 _productionViewVM = value; |
86 _productionViewVM = value; |
86 OnPropertyChanged("ViewModelProductionView"); |
87 OnPropertyChanged("ViewModelProductionView"); |
87 } |
88 } |
88 } |
89 } |
89 |
90 |
90 public MainVM(List<VideoBook> videoBooks) |
91 public MainVM() |
91 { |
92 { |
92 |
93 |
93 InitializeCommands(); |
94 InitializeCommands(); |
94 List<VideoBook> SelectedVideoBooks = videoBooks; |
95 List<VideoBook> SelectedVideoBooks = new List<VideoBook>(); |
|
96 SelectedVideoBooks = SettingsProject.ListVideoBook; |
95 |
97 |
96 |
98 |
97 // Initialisation des Components // |
99 // Initialisation des Components // |
98 ViewModelProductionView = new ProductionViewVM(); |
100 ViewModelProductionView = new ProductionViewVM() { RecordedVideoSequences = new ObservableCollection<VideoSequence>(SettingsProject.ProductionVideo) }; |
99 ViewModelConsultationView = new ConsultationViewVM(); |
101 ViewModelConsultationView = new ConsultationViewVM(); |
100 ViewModelNavigationBar = new NavigationBarVM() { ConsultMenuViewModel = new ConsultMenuVM(SelectedVideoBooks) }; |
102 ViewModelNavigationBar = new NavigationBarVM() { ConsultMenuViewModel = new ConsultMenuVM(SelectedVideoBooks) }; |
101 ViewModelHeaderControl = new HeaderControlVM(); |
103 ViewModelHeaderControl = new HeaderControlVM(); |
102 |
104 |
103 } |
105 } |