client/test/mainInterface/Iri.Modernisation.Test.MainInterface/MainPage.xaml.cs
changeset 12 513caf1637bf
parent 10 12515e11b357
child 14 a48c44bc825b
--- a/client/test/mainInterface/Iri.Modernisation.Test.MainInterface/MainPage.xaml.cs	Tue Nov 24 09:59:20 2009 +0100
+++ b/client/test/mainInterface/Iri.Modernisation.Test.MainInterface/MainPage.xaml.cs	Tue Nov 24 10:42:26 2009 +0100
@@ -21,7 +21,7 @@
     {
         public MainPage()
         {
-            
+            InitializeComponent();
            List<VideoBook> SelectedVideoBooks = new List<VideoBook>();
             /*************** Content Demo ***************/
            /* Pour pouvoir tester avec des vidéos :     
@@ -48,10 +48,10 @@
 
             /*************** Initialisation des commandes ***************/
             Commands.Initialize();
-            Commands.FlipView.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(FlipView_Executed);
+           // Commands.FlipView.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(FlipView_Executed);
             /********************************************/
-
-            /*************** Initialisation des Component ***************/
+            MainElement.DataContext = new MainVM(SelectedVideoBooks);
+            /*************** Initialisation des Component **************
             InitializeComponent();
             ConsultationViewElement.DataContext = new ConsultationViewVM();
             NavigationBarVM navvm = new NavigationBarVM() { ConsultMenuViewModel = new ConsultMenuVM(SelectedVideoBooks) };
@@ -62,11 +62,7 @@
            
         }
 
-        void FlipView_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
-        {
-            Commands.VideoViewer.Pause.Execute();
-            FlipTest.ExecuteFlip();
-        }
+       
     }
     
 }