示例#1
0
        private void Sudoku_Game(object sender, RoutedEventArgs e)
        {
            SecondWindow sudoku = new SecondWindow();

            sudoku.Show();
            this.Close();
        }
示例#2
0
        private void Sudoku_Game(object sender, RoutedEventArgs e)
        {
            SecondWindow new_game = new SecondWindow();

            if (MessageBox.Show("Do you really want to move to a new game ? The data will not be saved.", "Question", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
            {
                new_game.Show();
                this.Close();
            }
        }