private void toolStripButton1_Click(object sender, EventArgs e) { if (is_AdminIS == false) { MessageBox.Show("权限不够"); } var form = new frmInputCenter(); if (form.ShowDialog() == DialogResult.OK) { } }
private void 库录入ToolStripMenuItem_Click(object sender, EventArgs e) { if (frmInputCenter == null) { frmInputCenter = new frmInputCenter(); frmInputCenter.FormClosed += new FormClosedEventHandler(FrmOMS_FormClosed); } if (frmInputCenter == null) { frmInputCenter = new frmInputCenter(); } frmInputCenter.Show(this.dockPanel2); }
void FrmOMS_FormClosed(object sender, FormClosedEventArgs e) { if (sender is frmInputCenter) { frmInputCenter = null; } if (sender is frmChouchamoshi) { frmChouchamoshi = null; } if (sender is frmKaoshimoshi) { frmKaoshimoshi = null; } }