public ContactViewModel()
 {
     _contactCatalog = new ContactCatalog();
     GetDomainObjects();
     _selectedContact  = null;
     AddContactCommand = new RelayCommand(AddContact);
     _deletionCommand  = new DeleteCommand(_contactCatalog, this);
 }
Exemple #2
0
 private DomainModel()
 {
     _contactCatalog  = new ContactCatalog();
     _customerCatalog = new CustomerCatalog();
     _leadCatalog     = new LeadCatalog();
     _locationCatalog = new LocationCatalog();
     _offerCatalog    = new OfferCatalog();
     _pipelineCatalog = new PipelineCatalog();
     _productCatalog  = new ProductCatalog();
     _userCatalog     = new UserCatalog();
 }
Exemple #3
0
 public DeleteCommand(ContactCatalog catalog, ContactViewModel viewModel)
 {
     _catalog   = catalog;
     _viewModel = viewModel;
 }