Пример #1
0
        public ftableQl()
        {
            InitializeComponent();
            f1          = new FormSV();
            f1.TopLevel = false;
            f1.Dock     = DockStyle.Fill;

            this.pan.Controls.Add(f1);
            f2          = new FormGV();
            f2.TopLevel = false;
            f2.Dock     = DockStyle.Fill;
            this.pan.Controls.Add(f2);
            f3          = new FormDiem();
            f3.TopLevel = false;
            f3.Dock     = DockStyle.Fill;
            this.pan.Controls.Add(f3);
            f4          = new FormLTC();
            f4.TopLevel = false;
            f4.Dock     = DockStyle.Fill;
            this.pan.Controls.Add(f4);
            f5          = new Baocao();
            f5.TopLevel = false;
            f5.Dock     = DockStyle.Fill;
            this.pan.Controls.Add(f5);
        }
Пример #2
0
        private void btnDiem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frmAction = CheckExists(typeof(FormDiem));

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

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

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