private void button1_Click(object sender, EventArgs e) { if (!ClsBLL.CheckFormIsOpen("frmWork")) { frmWork fw = new frmWork(); fw.Show(); } else { Form frm = Application.OpenForms["frmWork"]; frm.Focus(); } }
private void button2_Click(object sender, EventArgs e) { frmWork fw = new frmWork(); fw.Show(); }