Ejemplo n.º 1
0
 /// <summary>
 /// Gemmer den aktive kunde
 /// </summary>
 /// <author>Mathias Petersen</author>
 public void SaveActiveCustomer()
 {
     customerCatalog.Save(activeCustomer);
     if (activeCustomer.Id != -1)
     {
         customerCatalog.AddToCatalog(activeCustomer);
     }
 }
Ejemplo n.º 2
0
        public void Execute(object parameter)
        {
            _catalog.Delete(_customerMasterDetailsView.ItemViewModelSelected.DomainObject.Key);

            _customerMasterDetailsView.ItemViewModelSelected = null;

            _customerMasterDetailsView.RefreshCustomerItemViewModelCollection();

            _catalog.Save();
        }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 4
0
 public void Execute(object parameter)
 {
     _catalog.Save();
 }