private void btnAdd_Click(object sender, EventArgs e) { try { cust.Clone(); SetCustomer(); Idal.Add(cust); // In memory //Idal.Save(); // Physical commit LoadGridInMemory(); ClearCustomer(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void dtgGridCustomer_RowEnter(object sender, DataGridViewCellEventArgs e) { cust = Idal.GetData(e.RowIndex); cust.Clone(); LoadCustomeronUI(); }
public void RowEnter(int rowIndex) { cust = Idal.GetData(rowIndex); cust.Clone(); ObjecttoUI(); }