/// <summary> /// Initializes and opens <see cref="MainWindow"/> and closes <see cref="HighscoreWindow"/> /// </summary> /// <param name="sender">Object containing information about sender object</param> /// <param name="args">Object containing arguments</param> private void BackToMenu_Click(object sender, RoutedEventArgs args) { var mainWindow = new MainWindow(); mainWindow.Show(); this.Hide(); }
/// <summary> /// Initializes a <see cref="MainWindow"/> window and opens it. /// Closes <see cref="EndScreenWindow"/> /// </summary> /// <param name="sender">Object containing information about sender object</param> /// <param name="args">Object containing arguments</param> private void OnMenuClick(object sender, RoutedEventArgs args) { var menu = new MainWindow(); menu.Show(); this.Close(); }