示例#1
0
 public void SaveCustomer()
 {
     CustomerInEditor.Studentnumber = EditorStudentnumber;
     CustomerInEditor.Name          = EditorName;
     CustomerInEditor.Password      = EditorPassword;
     CustomerInEditor.Email         = EditorEmail;
     if (IsExistingCustomer(CustomerInEditor))
     {
         Service.UpdateCustomer(CustomerInEditor);
     }
     else
     {
         Service.AddCustomer(CustomerInEditor);
     }
     LoadCustomers();
 }
示例#2
0
 public bool UpdateClient(Customer client)
 {
     return(Service.UpdateCustomer(client));
 }
示例#3
0
 private void OnCustomerDataChanged(CustomerViewModel customer, string propertyname)
 {
     dataService.UpdateCustomer(customer.Data);
 }