private void rbt_policy_Click(object sender, EventArgs e) { #if !READONLY if (frm_PolicyUpdate.isRunning) { MessageBox.Show("该功能已经在运行", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { frm_PolicyUpdate.isRunning = true; frm_PolicyUpdate frm = new frm_PolicyUpdate(); frm.Show(); } #endif }
private void ribbonButton4_Click(object sender, EventArgs e) { frm_PolicyUpdate frm = new frm_PolicyUpdate(); frm.ShowDialog(); }