private void buttonNotification_Click(object sender, RoutedEventArgs e) { ReviewNotificationWindows reviewNotificationWindows = new ReviewNotificationWindows(); reviewNotificationWindows.Show(); this.Close(); }
private void Window_KeyDown(object sender, KeyEventArgs e) { 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.I) { EditInformationWindow editInformationWindow = new EditInformationWindow(); editInformationWindow.Show(); this.Close(); } else if (e.Key == Key.H) { HomePageWindow homePageWindow = new HomePageWindow(); homePageWindow.Show(); this.Close(); } else if (e.Key == Key.L) { EditPasswordWindow editPasswordWindow = new EditPasswordWindow(); editPasswordWindow.Show(); this.Close(); } else if (e.Key == Key.A) { // Moje ALERGIJE AllergiesWindow allergiesWindow = new AllergiesWindow(); allergiesWindow.Show(); } else if (e.Key == Key.T) { // MOJE Terapije ReviewTherapyWindow therapy = new ReviewTherapyWindow(); therapy.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(); } }