示例#1
0
        private void X_O(object sender, RoutedEventArgs e)
        {
            FirstWindow cross_null = new FirstWindow();

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

            if (MessageBox.Show("Start new game ?", "Question", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
            {
                new_game.Show();
                this.Close();
            }
        }