private void 退出采集站ToolStripMenuItem_Click(object sender, EventArgs e) { if (MessageBox.Show(this, "是否要退出IO采集站,退出后设备将无法获取传输数据!", "退出提示", MessageBoxButtons.YesNo) == DialogResult.Yes) { MonitorFormManager.ApplicationExit(); } }
static void Application_ApplicationExit(object sender, EventArgs e) { MonitorFormManager.ApplicationExit(); }