equal
deleted
inserted
replaced
24 { |
24 { |
25 public MainPage() |
25 public MainPage() |
26 { |
26 { |
27 Commands.Initialize(); |
27 Commands.Initialize(); |
28 InitializeComponent(); |
28 InitializeComponent(); |
29 Start(); |
29 |
|
30 MainElement.DataContext = new MainVM(new List<VideoBook>()); |
30 |
31 |
31 } |
32 } |
32 private void Start() |
33 |
33 { |
34 |
34 List<VideoBook> SelectedVideoBooks = new List<VideoBook>(); |
|
35 // Initialisation des commandes // |
|
36 |
|
37 Commands.FlipView.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(FlipView_Executed); |
|
38 //-----------------------------------------// |
|
39 |
|
40 |
|
41 // Initialisation des Components // |
|
42 ConsultationViewElement.DataContext = new ConsultationViewVM(); |
|
43 NavigationBarElement.DataContext = new NavigationBarVM() { ConsultMenuViewModel = new ConsultMenuVM(SelectedVideoBooks) }; |
|
44 HeaderControlElement.DataContext = new HeaderControlVM(); |
|
45 ProductionViewElement.DataContext = new HeaderProductionVM(); |
|
46 //------------------------------------------------------// |
|
47 |
|
48 } |
|
49 void FlipView_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
|
50 { |
|
51 Commands.VideoViewer.Pause.Execute(); |
|
52 |
|
53 |
|
54 |
|
55 FlipTest.ExecuteFlip(); |
|
56 } |
|
57 } |
35 } |
58 } |
36 } |