示例#1
0
文件: FrmLogin.cs 项目: hitechqb/QLSV
        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();
            }
        }
示例#2
0
文件: Main.cs 项目: hitechqb/QLSV
        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();
            }
        }
示例#3
0
文件: Main.cs 项目: hitechqb/QLSV
        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();
            }
        }
示例#4
0
文件: Main.cs 项目: hitechqb/QLSV
        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();
            }
        }
示例#5
0
文件: Main.cs 项目: hitechqb/QLSV
        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();
            }
        }