private void 退出系统ToolStripMenuItem_Click(object sender, EventArgs e) { if (MessageBox.Show("确定要退出本系统吗?", "警告", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK) { Application.Exit(); } }