private void tsmiDepartment_Click(object sender, EventArgs e) { FrmDepartment frm = FrmDepartment.GetSingleton(); frm.MdiParent = this; frm.Show(); frm.Activate(); }
public static FrmDepartment GetSingleton() { if (frm == null || frm.IsDisposed) { frm = new FrmDepartment(); } return(frm); }