Exemple #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            View.MainWindow      window   = new colle_tMedecine.View.MainWindow();
            ViewModel.MainWindow windowVM = new ViewModel.MainWindow();

            windowVM.MenuIsActive = false;
            window.DataContext    = windowVM;

            View.Login login_view       = new colle_tMedecine.View.Login();
            ViewModel.LoginViewModel vm = new colle_tMedecine.ViewModel.LoginViewModel();
            login_view.DataContext        = vm;
            window.contentcontrol.Content = login_view;



            /* View.Nouveau_Personnel menu = new colle_tMedecine.View.Nouveau_Personnel();
             * ViewModel.Nouveau_PersonnelViewModel fm = new colle_tMedecine.ViewModel.Nouveau_PersonnelViewModel();
             * menu.DataContext = fm;
             * window.contentcontrol.Content = menu;*/


            window.Show();
            // Application.Current.MainWindow.DataContext;
        }
Exemple #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            View.MainWindow window = new colle_tMedecine.View.MainWindow();
            ViewModel.MainWindow windowVM = new ViewModel.MainWindow();

            windowVM.MenuIsActive = false;
            window.DataContext = windowVM;

            View.Login login_view = new colle_tMedecine.View.Login();
            ViewModel.LoginViewModel vm = new colle_tMedecine.ViewModel.LoginViewModel();
            login_view.DataContext = vm;
            window.contentcontrol.Content = login_view;

               /* View.Nouveau_Personnel menu = new colle_tMedecine.View.Nouveau_Personnel();
            ViewModel.Nouveau_PersonnelViewModel fm = new colle_tMedecine.ViewModel.Nouveau_PersonnelViewModel();
            menu.DataContext = fm;
            window.contentcontrol.Content = menu;*/

            window.Show();
            // Application.Current.MainWindow.DataContext;
        }