/// <summary> /// Handles the KeyDown event of the Informations window. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="KeyEventArgs"/> instance containing the event data.</param> private void Informations_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Escape) { MainWindow openParent = new MainWindow(); openParent.Show(); Close(); } }
/// <summary> /// Handles the Click event of the back control witch returns to the main window. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void back_Click(object sender, RoutedEventArgs e) { MainWindow backToMain = new MainWindow(); backToMain.Show(); Close(); }
/// <summary> /// Returns to the main window. /// </summary> private void ReturnToMainWindow() { MainWindow parentWindow = new MainWindow(); parentWindow.Show(); Close(); }
/// <summary> /// Returns to the Main window. /// </summary> private void BackToMain() { MainWindow returnToParent = new MainWindow(); returnToParent.Show(); Close(); }