Exemplo n.º 1
0
 public void Execute(object parameter)
 {
     _customerVM.SelectedCustomer.Company       = _customerVM.Company;
     _customerVM.SelectedCustomer.Name          = _customerVM.Name;
     _customerVM.SelectedCustomer.Address       = _customerVM.Address;
     _customerVM.SelectedCustomer.ZipCode       = _customerVM.ZipCode;
     _customerVM.SelectedCustomer.Town          = _customerVM.Town;
     _customerVM.SelectedCustomer.PhoneNumber   = _customerVM.PhoneNumber;
     _customerVM.SelectedCustomer.Email         = _customerVM.Email;
     _customerVM.SelectedCustomer.CompanyNumber = _customerVM.CompanyNumber;
     // _catalog.EditCustomer(_customerVM.SelectedCustomer);
     _customerVM.Refresh();
 }
Exemplo n.º 2
0
 public void Execute(object parameter)
 {
     _catalog.Delete(_customerVM.SelectedCustomer);
     _customerVM.Refresh();
     _catalog.SaveCustomer();
 }