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

            sudoku.Show();
            this.Close();
        }
コード例 #2
0
ファイル: FirstWindow.xaml.cs プロジェクト: olegdatskiv/game
        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();
            }
        }