////////////////////////////////// private void Exit_Click(object sender, EventArgs e) { ExitConfirm ec = new ExitConfirm(); DialogResult dr = ec.ShowDialog(); if (dr == DialogResult.Cancel) { } }
private void btn_Exit_Click(object sender, EventArgs e) { ExitConfirm ec = new ExitConfirm(); DialogResult dr = ec.ShowDialog(); if (dr == DialogResult.Yes) { Application.Exit(); } }
private void Exit_Click(object sender, EventArgs e) { gameTimer.Stop(); ExitConfirm ec = new ExitConfirm(); DialogResult dr = ec.ShowDialog(); if (dr == DialogResult.Cancel) { gameTimer.Start(); } }