Exemple #1
0
        private void btnQLMonHoc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmMonHoc frm = new frmMonHoc();

            frm.MdiParent   = this;
            frm.WindowState = FormWindowState.Maximized;
            frm.Show();
        }
Exemple #2
0
        private void txtmaMonHoc_Enter(object sender, EventArgs e)
        {
            frmMonHoc frmMH = new frmMonHoc();

            frmMH.ShowDialog();
            if (frmMH.idMonHoc != null)
            {
                txtmaMonHoc.Text  = mh.getMaMonHocByID(frmMH.idMonHoc);
                txtmaMonHoc.Tag   = frmMH.idMonHoc;
                txtTenMonHoc.Text = mh.getTenMonHocByID(frmMH.idMonHoc);
            }
        }
Exemple #3
0
        private void txtmaMon_Leave(object sender, EventArgs e)
        {
            frmMonHoc frmMH = new frmMonHoc();

            frmMH.khoiLop = int.Parse(txtKhoiLop.Text);
            frmMH.ShowDialog();
            if (frmMH.idMonHoc != null)
            {
                txtmaMon.Text  = mh.getMaMonHocByID(frmMH.idMonHoc);
                txtTenMon.Text = mh.getTenMonHocByID(frmMH.idMonHoc);
                txtmaMon.Tag   = frmMH.idMonHoc;
            }
        }