public void Execute(object parameter)
        {
            _catalog.Delete(_customerMasterDetailsView.ItemViewModelSelected.DomainObject.Key);

            _customerMasterDetailsView.ItemViewModelSelected = null;

            _customerMasterDetailsView.RefreshCustomerItemViewModelCollection();

            _catalog.Save();
        }
Exemple #2
0
 public void Execute(object parameter)
 {
     _catalog.Create(new Customer(_customerMasterDetailsViewModel.ItemViewModelSelected.CVR,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.FirstName,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.LastName,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.EmailAddress,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.PhoneNumber,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.Address,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.City,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.AreaCode,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.Info));
     _customerMasterDetailsViewModel.RefreshCustomerItemViewModelCollection();
     _catalog.Save();
 }
Exemple #3
0
 public void Execute(object parameter)
 {
     _mdvm.RefreshCustomerItemViewModelCollection();
 }