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