private void Login() { if (CheckLogin()) { ShowCloseFormWaitSplash.ShowWaitForm(); var userName = loginRepository.GetFullNameByUser(TxtEmail.Text).ToString(); var fMain = new Main(userName); fMain.FormClosed += FMain_FormClosed; fMain.Show(); ShowCloseFormWaitSplash.CloseWaitForm(); this.Hide(); } }
private void ShowForm_KetQuaTotNghiep() { string fName = "KetQua"; var f = GetFormChild(fName); if (f == null) { ShowCloseFormWaitSplash.ShowWaitForm(); f = new Report.View.FrmReportKQTN(_Khoa.MaKhoa); f.MdiParent = this; f.Name = fName; f.Show(); ShowCloseFormWaitSplash.CloseWaitForm(); } else { f.Activate(); } }
private void ShowForm_Diem() { string fName = "DanhMucDiem"; Form f = GetFormChild(fName); if (f == null) { ShowCloseFormWaitSplash.ShowWaitForm(); f = new View.Diem.FrmDiem(); f.Name = fName; f.MdiParent = this; f.Show(); ShowCloseFormWaitSplash.CloseWaitForm(); } else { f.Activate(); } }
private void ShowFrom_DangKyMonHoc() { string fName = "DangKyMonHoc"; var f = GetFormChild(fName); if (f == null) { ShowCloseFormWaitSplash.ShowWaitForm(); f = new View.MonHoc.FrmDangKyMonHoc(); f.MdiParent = this; f.Name = fName; f.Show(); ShowCloseFormWaitSplash.CloseWaitForm(); } else { f.Activate(); } }
private void ShowForm_QuanTriNguoiDung() { string fName = "DanhSachNguoiDung"; Form f = GetFormChild(fName); if (f == null) { ShowCloseFormWaitSplash.ShowWaitForm(); f = new View.Admin.FrmQuanLyNguoiDung(); f.Name = fName; f.MdiParent = this; f.Show(); ShowCloseFormWaitSplash.CloseWaitForm(); } else { f.Activate(); } }