Пример #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     CapNhatToKhai frm = new CapNhatToKhai();
     frm.Action = CapNhatToKhai.FormAction.AddNew;
     frm.ShowDialog();
     LoadData(2);
 }
Пример #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     object MToKhaiID = gvDSToKhai.GetRowCellValue(gvDSToKhai.FocusedRowHandle, "MToKhaiID");
     if (MToKhaiID == null) return;
     CapNhatToKhai frm = new CapNhatToKhai();
     frm.MToKhaiID = MToKhaiID.ToString();
     frm.Action = CapNhatToKhai.FormAction.Edit;
     frm.ShowDialog();
     LoadData(0);
 }