예제 #1
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            switch (((MenuItem)sender).Header.ToString())
            {
            case "Exit":
                this.Close();
                break;

            case "Back to main window":
                backButton_Click(sender, e);
                break;

            case "Flip board":
                chessBoard.Flip();
                break;

            case "Option":
                WindowGameOption w = new WindowGameOption(true);
                w.Show();
                break;
            }
        }
예제 #2
0
        private void buttonOption_Click(object sender, RoutedEventArgs e)
        {
            WindowGameOption w = new WindowGameOption(true);

            w.Show();
        }