public static void HienThiTaiKhoan() { if (m_FrmTaiKhoan == null || m_FrmTaiKhoan.IsDisposed) { m_FrmTaiKhoan = new frmTaiKhoan(); m_FrmTaiKhoan.MdiParent = frmMain.ActiveForm; m_FrmTaiKhoan.Show(); } else { m_FrmTaiKhoan.Activate(); } }
private void btnTaiKhoan_Click(object sender, EventArgs e) { if (fTK == null || fTK.IsDisposed) { fTK = new frmTaiKhoan(); fTK.MdiParent = this; fTK.Show(); } else { fTK.Activate(); } }