WFormSynchronizeData_SMR/WFormReadData_SMR/ReadyDataForm.cs
@@ -295,5 +295,16 @@ } private void ReadyDataForm_FormClosing(object sender, FormClosingEventArgs e) { if (num == 1) { MessageBox.Show("当前按钮未暂停,不允许关闭!"); e.Cancel = true; } else if (MessageBox.Show("确定要关闭吗?", "确认", MessageBoxButtons.YesNo) == DialogResult.No) { e.Cancel = true; } } } }