private void Setup() { using (FrmSetup dlg = new FrmSetup()) { if (dlg.ShowDialog() == DialogResult.OK) { if (MessageBox.Show("参数已被修改,是否重启服务?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes) { ReStart(); } } } }
private void Setup() { using (FrmSetup dlg = new FrmSetup()) { if (dlg.ShowDialog() == DialogResult.OK) { if (MessageBox.Show("参数已被修改,是否重启服务?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes) { ReStart(); } } } }