Пример #1
0
 public ContactViewModel()
 {
     _contactCatalog = new ContactCatalog();
     GetDomainObjects();
     _selectedContact  = null;
     AddContactCommand = new RelayCommand(AddContact);
     _deletionCommand  = new DeleteCommand(_contactCatalog, this);
 }
Пример #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();
 }
Пример #3
0
 public DeleteCommand(ContactCatalog catalog, ContactViewModel viewModel)
 {
     _catalog   = catalog;
     _viewModel = viewModel;
 }