|
0
|
1 |
using System; |
|
|
2 |
using System.Collections.Generic; |
|
|
3 |
using System.Linq; |
|
|
4 |
using System.Net; |
|
|
5 |
using System.Windows; |
|
|
6 |
using System.Windows.Controls; |
|
|
7 |
using System.Windows.Documents; |
|
|
8 |
using System.Windows.Input; |
|
|
9 |
using System.Windows.Media; |
|
|
10 |
using System.Windows.Media.Animation; |
|
|
11 |
using System.Windows.Shapes; |
|
|
12 |
|
|
|
13 |
using Iri.Modernisation.Controls.ViewModel; |
|
|
14 |
using Iri.Modernisation.BaseMVVM.Commands; |
|
|
15 |
using Iri.Modernisation.Data.LDTClass; |
|
|
16 |
using Iri.Modernisation.Data.Models; |
|
|
17 |
|
|
|
18 |
namespace Iri.Modernisation |
|
|
19 |
{ |
|
|
20 |
public partial class MainPage : UserControl |
|
|
21 |
{ |
|
|
22 |
public MainPage() |
|
|
23 |
{ |
|
|
24 |
|
|
|
25 |
InitializeComponent(); |
|
|
26 |
|
|
|
27 |
} |
|
|
28 |
private void Start() |
|
|
29 |
{ |
|
|
30 |
List<VideoBook> SelectedVideoBooks = new List<VideoBook>(); |
|
|
31 |
// Initialisation des commandes // |
|
|
32 |
Commands.Initialize(); |
|
|
33 |
Commands.FlipView.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(FlipView_Executed); |
|
|
34 |
//-----------------------------------------// |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
// Initialisation des Components // |
|
|
38 |
ConsultationViewElement.DataContext = new ConsultationViewVM(); |
|
|
39 |
NavigationBarElement.DataContext = new NavigationBarVM() { ConsultMenuViewModel = new ConsultMenuVM(SelectedVideoBooks) }; |
|
|
40 |
HeaderControlElement.DataContext = new HeaderControlVM(); |
|
|
41 |
ProductionViewElement.DataContext = new HeaderProductionVM(); |
|
|
42 |
//------------------------------------------------------// |
|
|
43 |
|
|
|
44 |
} |
|
|
45 |
void FlipView_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
|
|
46 |
{ |
|
|
47 |
Commands.VideoViewer.Pause.Execute(); |
|
|
48 |
FlipTest.ExecuteFlip(); |
|
|
49 |
} |
|
|
50 |
} |
|
|
51 |
} |