private void ExecuteShowAppointmentSchedule()
 {
     if (CurrentViewModel == AppointmentScheduleViewModel)
     {
         return;
     }
     AppointmentScheduleViewModel.Initialize();
     CurrentViewModel = AppointmentScheduleViewModel;
 }
        public DoctorMenuViewModel(AppointmentScheduleViewModel appointmentScheduleViewModel, AppointmentCreateViewModel appointmentCreateViewModel,
                                   DoctorReportMenuViewModel doctorReportMenuViewModel, IDoctorService doctorService)
        {
            MessengerInstance.Register <CurrentUser>(this, async message =>
            {
                var foundDoctor = await doctorService.Get(message.User.ID);
                appointmentScheduleViewModel.Doctor = foundDoctor;
                appointmentCreateViewModel.Doctor   = foundDoctor;
                doctorReportMenuViewModel.Doctor    = foundDoctor;

                AppointmentScheduleViewModel = appointmentScheduleViewModel;
                AppointmentCreateViewModel   = appointmentCreateViewModel;
                DoctorReportMenuViewModel    = doctorReportMenuViewModel;
                ExecuteShowAppointmentSchedule();
            });
            ShowAppointmentSchedule   = new RelayCommand(ExecuteShowAppointmentSchedule);
            ShowCreateAppointmentMenu = new RelayCommand(ExecuteShowCreateAppointmentMenu);
            ShowReportsMenu           = new RelayCommand(ExecuteShowReportsMenu);
        }