Exemplo n.º 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     LaySoLieuToKhaiTTDB frmLaySoLieuToKhaiTTDB = new LaySoLieuToKhaiTTDB();
     frmLaySoLieuToKhaiTTDB.Action = LaySoLieuToKhaiTTDB.FormAction.AddNew;
     frmLaySoLieuToKhaiTTDB.ShowDialog();
     LoadDSToKhaiTTDB(2);
 }
Exemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     object MToKhaiTTDBID = gvDetail.GetRowCellValue(gvDetail.FocusedRowHandle, "MToKhaiTTDBID");
     if (MToKhaiTTDBID == null) return;
     LaySoLieuToKhaiTTDB frm = new LaySoLieuToKhaiTTDB();
     frm.MToKhaiTTDBID = MToKhaiTTDBID.ToString();
     frm.Action = LaySoLieuToKhaiTTDB.FormAction.Edit;
     frm.ShowDialog();
     LoadDSToKhaiTTDB(0);
 }