Example #1
0
        private void FinishedGameMessage()
        {
            DialogResult result = MessageBox.Show(GetFinishedMessage(), "Othello Game",
                                                  MessageBoxButtons.YesNo, MessageBoxIcon.Information,
                                                  MessageBoxDefaultButton.Button1);

            if (result == DialogResult.OK)
            {
                Application.Exit();
            }

            if (result == DialogResult.Yes)
            {
                StartForm.ResetGame(this);
            }
            else
            {
                Application.Exit();
            }
        }
        public static void Main()
        {
            StartForm startForm = new StartForm();

            startForm.ShowDialog();
        }