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 buttonEditInfo_Click(object sender, RoutedEventArgs e) { EditInformationWindow editInformationWindow = new EditInformationWindow(); editInformationWindow.Show(); this.Close(); }