Beispiel #1
0
        private void btnBaiHoc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmBaiHoc frmBH = new FrmBaiHoc();

            frmBH.MdiParent = this;
            frmBH.Show();
        }
Beispiel #2
0
        private void txtMaBaiHoc_Enter(object sender, EventArgs e)
        {
            FrmBaiHoc frmBH = new FrmBaiHoc();

            frmBH.idChuongBai = txtMaChuong.Tag.ToString();
            frmBH.ShowDialog();
            if (frmBH.idBaiHoc != null)
            {
                txtMaBaiHoc.Text  = bh.getMaBaiHocByID(frmBH.idBaiHoc);
                txtMaBaiHoc.Tag   = frmBH.idBaiHoc;
                txtTenBaiHoc.Text = bh.getTenBaiHocByID(frmBH.idBaiHoc);
            }
        }