private void btnQLMonHoc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmMonHoc frm = new frmMonHoc(); frm.MdiParent = this; frm.WindowState = FormWindowState.Maximized; frm.Show(); }
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); } }
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; } }