public static void ShowFormChuyenLop() { if (m_frmChuyenLop == null || m_frmChuyenLop.IsDisposed) { m_frmChuyenLop = new frmChuyenLop(); m_frmChuyenLop.MdiParent = frmMain.ActiveForm; m_frmChuyenLop.Show(); } else { m_frmChuyenLop.Activate(); } }
private void tsChuyenLop_Click(object sender, EventArgs e) { if (!CheckExistFrom("frmChuyenLop")) { frmChuyenLop frm = new frmChuyenLop(); frm.MdiParent = this; frm.Show(); } else { ActiveChildForm("frmChuyenLop"); } }