private void buttonRecommendAppoitments_Click(object sender, RoutedEventArgs e) { RecommendationAppointmentWindow recommendationAppointmentWindow = new RecommendationAppointmentWindow(); recommendationAppointmentWindow.Show(); this.Close(); }
private void Window_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.M) { ProfileWindow profileWindow = new ProfileWindow(); profileWindow.Show(); this.Close(); } else if (e.Key == Key.O) { ReviewNotificationWindows reviewNotificationWindows = new ReviewNotificationWindows(); reviewNotificationWindows.Show(); this.Close(); } else if (e.Key == Key.Escape) { MainWindow mainWindow = new MainWindow(); mainWindow.Show(); this.Close(); } else if (e.Key == Key.S) { MakeAppointmentWindow makeAppointmentWindow = new MakeAppointmentWindow(); makeAppointmentWindow.Show(); this.Close(); } else if (e.Key == Key.P) { RecommendationAppointmentWindow recommendationAppointmentWindow = new RecommendationAppointmentWindow(); recommendationAppointmentWindow.Show(); this.Close(); } else if (e.Key == Key.Z) { ReviewExaminationsWindow reviewExaminationsWindow = new ReviewExaminationsWindow(); reviewExaminationsWindow.Show(); this.Close(); } else if (e.Key == Key.T) { ReviewTherapyWindow reviewTherapyWindow = new ReviewTherapyWindow(); reviewTherapyWindow.Show(); this.Close(); } else if (e.Key == Key.C) { CancelExaminationWindow cancelExaminationWindow = new CancelExaminationWindow(); cancelExaminationWindow.Show(); this.Close(); } else if (e.Key == Key.I) { ReviewReportWindow reviewReportWindow = new ReviewReportWindow(); reviewReportWindow.Show(); this.Close(); } else if (e.Key == Key.A) { SurveyWindow surveyWindow = new SurveyWindow(); surveyWindow.Show(); this.Close(); } else if (e.Key == Key.E) { string currentUsername = MainWindow.patient.Username; GraphicalEditor.MainWindow graphicalEditorMainWindow = new GraphicalEditor.MainWindow("Patient", currentUsername); graphicalEditorMainWindow.ShowDialog(); } }