|
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 System.Collections.Generic; |
|
12 using Iri.Modernisation.Data.Models; |
|
13 using Iri.Modernisation.BaseMVVM.Commands; |
|
14 using Iri.Modernisation.BaseMVVM.ViewModel; |
|
15 namespace Iri.Modernisation.Controls.ViewModel |
|
16 { |
|
17 public class MainVM : BaseMVVM.ViewModel.ViewModel |
|
18 { |
|
19 private ConsultationViewVM _consultationViewVM; |
|
20 public ConsultationViewVM ViewModelConsultationView |
|
21 { |
|
22 get |
|
23 { |
|
24 return _consultationViewVM; |
|
25 } |
|
26 set |
|
27 { |
|
28 _consultationViewVM = value; |
|
29 OnPropertyChanged("ViewModelConsultationView"); |
|
30 } |
|
31 } |
|
32 |
|
33 private NavigationBarVM _navigationBarVM; |
|
34 public NavigationBarVM ViewModelNavigationBar |
|
35 { |
|
36 get |
|
37 { |
|
38 return _navigationBarVM; |
|
39 } |
|
40 set |
|
41 { |
|
42 _navigationBarVM = value; |
|
43 OnPropertyChanged("ViewModelNavigationBar"); |
|
44 } |
|
45 } |
|
46 |
|
47 private HeaderControlVM _headerControlVM; |
|
48 public HeaderControlVM ViewModelHeaderControl |
|
49 { |
|
50 get |
|
51 { |
|
52 return _headerControlVM; |
|
53 } |
|
54 set |
|
55 { |
|
56 _headerControlVM = value; |
|
57 OnPropertyChanged("ViewModelHeaderControl"); |
|
58 } |
|
59 } |
|
60 |
|
61 private HeaderProductionVM _headerProductionVM; |
|
62 public HeaderProductionVM ViewModelHeaderProduction |
|
63 { |
|
64 get |
|
65 { |
|
66 return _headerProductionVM; |
|
67 } |
|
68 set |
|
69 { |
|
70 _headerProductionVM = value; |
|
71 OnPropertyChanged("ViewModelHeaderProduction"); |
|
72 } |
|
73 } |
|
74 |
|
75 public MainVM(List<VideoBook> videoBooks) |
|
76 { |
|
77 InitializeCommands(); |
|
78 List<VideoBook> SelectedVideoBooks = videoBooks; |
|
79 |
|
80 |
|
81 // Initialisation des Components // |
|
82 ViewModelConsultationView = new ConsultationViewVM(); |
|
83 ViewModelNavigationBar = new NavigationBarVM() { ConsultMenuViewModel = new ConsultMenuVM(SelectedVideoBooks) }; |
|
84 ViewModelHeaderControl = new HeaderControlVM(); |
|
85 ViewModelHeaderProduction = new HeaderProductionVM(); |
|
86 //------------------------------------------------------// |
|
87 } |
|
88 |
|
89 private void InitializeCommands() |
|
90 { |
|
91 Commands.Initialize(); |
|
92 } |
|
93 |
|
94 } |
|
95 } |