Beispiel #1
0
        private void btnChuongBai_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmChuongBai frmCH = new FrmChuongBai();

            frmCH.MdiParent = this;
            frmCH.Show();
        }
Beispiel #2
0
        private void txtMaChuong_Enter(object sender, EventArgs e)
        {
            FrmChuongBai frmCB = new FrmChuongBai();

            frmCB.idMonHoc = txtmaMonHoc.Tag.ToString();
            frmCB.ShowDialog();
            if (frmCB.idChuongBai != null)
            {
                txtMaChuong.Text  = cb.getMaChuongBaiByID(frmCB.idChuongBai);
                txtMaChuong.Tag   = frmCB.idChuongBai;
                txttenChuong.Text = cb.getTenChuongBaiByID(frmCB.idChuongBai);
            }
        }