//退出 private void exit(FormClosingEventArgs e) { ExitWindow exitForm = new ExitWindow(); if (exitForm.ShowDialog() == DialogResult.OK) { e.Cancel = false; } else { e.Cancel = true; } }
//退出 private void exit(FormClosingEventArgs e) { ExitWindow exitForm = new ExitWindow(); if (exitForm.ShowDialog() == DialogResult.OK) e.Cancel = false; else e.Cancel = true; }