private void UpdateCustomer() { if (this.gridCustomerList.ActiveRow!=null) { frmCustomerEdit frm = new frmCustomerEdit(); frm.CustomerId = this.gridCustomerList.ActiveRow.Cells["CUSTOMERID"].Value.ToString(); frm.ShowDialog(this); ShowCustomerList(); } }
private void NewCustomer() { frmCustomerEdit frm = new frmCustomerEdit(); frm.ShowDialog(this); ShowCustomerList(); }