private void tmiThoiKhoaBieu_Click(object sender, EventArgs e) { dsThoiKhoaBieu = new FDSThoiKhoaBieu(strMaSV); dsThoiKhoaBieu.MdiParent = this.ParentForm; dsThoiKhoaBieu.WindowState = FormWindowState.Maximized; dsThoiKhoaBieu.Show(); this.Close(); }
private void tmiSuKienHoatDong_Click(object sender, EventArgs e) { if (bDangNhapThanhCong == false) { MessageBox.Show("Bạn chưa đăng nhập"); return; } try { this.ActiveMdiChild.Close(); } catch (Exception) { } FDSThoiKhoaBieu dsThoiKhoaBieu; dsThoiKhoaBieu = new FDSThoiKhoaBieu(strMaSV); dsThoiKhoaBieu.MdiParent = this; dsThoiKhoaBieu.WindowState = FormWindowState.Maximized; dsThoiKhoaBieu.Show(); }