Exemple #1
0
        static void Main()
        {
            BonusSkins.Register();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FormLop formLop = new FormLop();

            formLop.WindowState = FormWindowState.Maximized;

            Program.frmMain             = new formMainv2();
            Program.frmMain.WindowState = FormWindowState.Maximized;
            Application.Run(new FormDangNhap());
        }
Exemple #2
0
        private void btnLop_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frmAction = CheckExists(typeof(FormLop));

            if (frmAction != null)
            {
                frmAction.Activate();
            }
            else
            {
                FormLop frmLop = new FormLop();
                frmLop.MdiParent = this;
                frmLop.Show();

                btnSinhVien.Enabled = false;
                btnMonHoc.Enabled   = false;
                btnDiem.Enabled     = false;
                btnDangXuat.Enabled = false;

                groupBaoCao.Enabled   = false;
                groupTaiKhoan.Enabled = false;
            }
        }