Esempio n. 1
0
        //////////////////////////////////

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

            if (dr == DialogResult.Cancel)
            {
            }
        }
Esempio n. 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();
            }
        }
Esempio n. 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();
            }
        }