/// <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();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns to the main window.
 /// </summary>
 private void ReturnToMainWindow()
 {
     MainWindow parentWindow = new MainWindow();
     parentWindow.Show();
     Close();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns to the Main window.
 /// </summary>
 private void BackToMain()
 {
     MainWindow returnToParent = new MainWindow();
     returnToParent.Show();
     Close();
 }