private void btnTool_Click(object sender, EventArgs e) { frmTool frm = new frmTool(btnTool); System.Windows.Forms.Form f1 = System.Windows.Forms.Application.OpenForms["frmTool"]; if (f1 == null) { frm.AfterJoinTable = new AfterJoinTable(this.CheckStatusTable); frm.Show(); } else { f1.Close(); } }
private void btnTool_Click(object sender, EventArgs e) { frmTool frm = new frmTool(btnTool); System.Windows.Forms.Form f1 = System.Windows.Forms.Application.OpenForms["frmTool"]; if (f1 == null) { frm.AfterJoinTable = new AfterJoinTable(this.CheckStatusTable); frm.Show(); } else f1.Close(); }