diff -r 94595c0c8242 -r 513caf1637bf client/src/Iri.Modernisation/MainPage.xaml.cs --- a/client/src/Iri.Modernisation/MainPage.xaml.cs Tue Nov 24 09:59:20 2009 +0100 +++ b/client/src/Iri.Modernisation/MainPage.xaml.cs Tue Nov 24 10:42:26 2009 +0100 @@ -26,33 +26,11 @@ { Commands.Initialize(); InitializeComponent(); - Start(); + + MainElement.DataContext = new MainVM(new List()); } - private void Start() - { - List SelectedVideoBooks = new List(); - // Initialisation des commandes // - - Commands.FlipView.Executed += new EventHandler(FlipView_Executed); - //-----------------------------------------// - - - // Initialisation des Components // - ConsultationViewElement.DataContext = new ConsultationViewVM(); - NavigationBarElement.DataContext = new NavigationBarVM() { ConsultMenuViewModel = new ConsultMenuVM(SelectedVideoBooks) }; - HeaderControlElement.DataContext = new HeaderControlVM(); - ProductionViewElement.DataContext = new HeaderProductionVM(); - //------------------------------------------------------// - - } - void FlipView_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) - { - Commands.VideoViewer.Pause.Execute(); - - - - FlipTest.ExecuteFlip(); - } + + } }