public ContactViewModel() { _contactCatalog = new ContactCatalog(); GetDomainObjects(); _selectedContact = null; AddContactCommand = new RelayCommand(AddContact); _deletionCommand = new DeleteCommand(_contactCatalog, this); }
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(); }
public DeleteCommand(ContactCatalog catalog, ContactViewModel viewModel) { _catalog = catalog; _viewModel = viewModel; }