Пример #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();
        }