public void btnSave_Click() { ValidateData(); _customer.Save(); _screen.CustomerId = _customer.CustomerId; _screen.Close(); }
public void btnSave_Click() { try { _customer.Save(); _screen.CustomerId = _customer.CustomerId; _screen.Close(); } catch (Exception ex) { _screen.ShowMessage("Unable to save customer: " + ex.Message); } }