private void ExecuteShowPatientRegistrationMenu() { if (CurrentViewModel == PatientRegisterViewModel) { return; } PatientRegisterViewModel.Initialize(); CurrentViewModel = PatientRegisterViewModel; }
public SecretaryMenuViewModel(PatientRegisterViewModel patientRegisterViewModel, NotificationMenuViewModel notificationMenuViewModel, ScheduleViewModel scheduleViewModel) { PatientRegisterViewModel = patientRegisterViewModel; NotificationMenuViewModel = notificationMenuViewModel; ScheduleViewModel = scheduleViewModel; MessengerInstance.Register <CurrentUser>(this, message => Secretary = message.User as Secretary); ShowPatientRegistrationMenu = new RelayCommand(ExecuteShowPatientRegistrationMenu); ShowNotificationsMenu = new RelayCommand(ExecuteShowNotificationsMenu); ShowScheduleMenu = new RelayCommand(ExecuteShowShowScheduleMenu); ExecuteShowPatientRegistrationMenu(); }