Beispiel #1
0
        //////////////////////////////////

        private void Exit_Click(object sender, EventArgs e)
        {
            ExitConfirm  ec = new ExitConfirm();
            DialogResult dr = ec.ShowDialog();

            if (dr == DialogResult.Cancel)
            {
            }
        }
Beispiel #2
0
        private void btn_Exit_Click(object sender, EventArgs e)
        {
            ExitConfirm  ec = new ExitConfirm();
            DialogResult dr = ec.ShowDialog();

            if (dr == DialogResult.Yes)
            {
                Application.Exit();
            }
        }
Beispiel #3
0
        private void Exit_Click(object sender, EventArgs e)
        {
            gameTimer.Stop();
            ExitConfirm  ec = new ExitConfirm();
            DialogResult dr = ec.ShowDialog();

            if (dr == DialogResult.Cancel)
            {
                gameTimer.Start();
            }
        }