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