Beispiel #1
0
        private void btnAddNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var f = new View.MonHoc.FrmThongTinMonHoc(null, srcKhoa.EditValue.ToString());

            if (f.ShowDialog() == DialogResult.OK)
            {
                ShowAlert();
                LoadMonHocByMaKhoa(srcKhoa.EditValue.ToString());
            }
        }
Beispiel #2
0
        private void OnEdit()
        {
            string MaMH   = grv_MonHoc.GetFocusedRowCellValue(colMaMH).ToString();
            var    MonHoc = monHocRepository.GetMonHocByMaMH(MaMH);

            var f = new View.MonHoc.FrmThongTinMonHoc(MonHoc.FirstOrDefault(), srcKhoa.EditValue.ToString());

            if (f.ShowDialog() == DialogResult.OK)
            {
                ShowAlert();
                LoadMonHocByMaKhoa(srcKhoa.EditValue.ToString());
            }
        }