private void buttonShowGraphicalEditor_Click(object sender, RoutedEventArgs e)
        {
            string currentUsername = MainWindow.patient.Username;

            GraphicalEditor.MainWindow graphicalEditorMainWindow = new GraphicalEditor.MainWindow("Patient", currentUsername);
            graphicalEditorMainWindow.ShowDialog();
        }
        private void HospitalMap_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            string currentUsername = LogIn.secretary.Username;

            GraphicalEditor.MainWindow graphicalEditorMainWindow = new GraphicalEditor.MainWindow("Secretary", currentUsername);
            graphicalEditorMainWindow.ShowDialog();
        }
        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();
            }
        }
 private void Navigation_Graphical_Editor_Click(object sender, RoutedEventArgs e)
 {
     GraphicalEditor.MainWindow graphicalEditorMainWindow = new GraphicalEditor.MainWindow("Doctor", d.Username);
     graphicalEditorMainWindow.ShowDialog();
 }