예제 #1
0
        private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmMonHoc_Add frm = new frmMonHoc_Add();

            frm.ShowDialog();
            frmMonHoc_Load(sender, e);
        }
예제 #2
0
        private void btnCopy_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int           focus = grvMonHoc.FocusedRowHandle;
            string        ID    = grvMonHoc.GetRowCellValue(focus, grdcolID).ToString();
            MonHoc        mh    = monHoc.GetMonHocByID(ID);
            frmMonHoc_Add frm   = new frmMonHoc_Add();

            frm.khoi   = (int)mh.Khoi;
            frm.mamon  = mh.MaMonHoc;
            frm.tenmon = mh.TenMonHoc;
            frm.ShowDialog();
            frmMonHoc_Load(sender, e);
        }