예제 #1
0
        private void AddObs()
        {
            View.MainWindow      mainwindow   = (View.MainWindow)Application.Current.MainWindow;
            ViewModel.MainWindow mainwindowVM = (ViewModel.MainWindow)mainwindow.DataContext;

            View.NewObservation view             = new colle_tMedecine.View.NewObservation();
            ViewModel.NewObservationViewModel vm = new colle_tMedecine.ViewModel.NewObservationViewModel(Patient);
            view.DataContext = vm;

            mainwindowVM.navigate((UserControl)mainwindow.contentcontrol.Content, view);
        }
예제 #2
0
        public void ShowNewUser()
        {
            View.MainWindow      mainwindow   = (View.MainWindow)Application.Current.MainWindow;
            ViewModel.MainWindow mainwindowVM = (ViewModel.MainWindow)mainwindow.DataContext;

            View.Nouveau_Personnel view             = new colle_tMedecine.View.Nouveau_Personnel();
            ViewModel.Nouveau_PersonnelViewModel vm = new colle_tMedecine.ViewModel.Nouveau_PersonnelViewModel();
            view.DataContext = vm;

            mainwindowVM.navigate((UserControl)mainwindow.contentcontrol.Content, view);
        }
예제 #3
0
        public void ShowPatientSheet(object param)
        {
            View.MainWindow      mainwindow   = (View.MainWindow)Application.Current.MainWindow;
            ViewModel.MainWindow mainwindowVM = (ViewModel.MainWindow)mainwindow.DataContext;

            Model.Patient pat = (Model.Patient)param;

            View.Fiche_Patient view = new colle_tMedecine.View.Fiche_Patient();

            ViewModel.Fiche_PatientViewModel vm = new colle_tMedecine.ViewModel.Fiche_PatientViewModel(pat);
            view.DataContext = vm;

            mainwindowVM.navigate((UserControl)mainwindow.contentcontrol.Content, view);
        }