public PresentListService() { this.presentListRepository = new PresentListRepository(); this.presentRepository = new PresentRepository(); this.productsRepository = new ProductsRepository(); this.dedicatoryRepository = new DedicatoryRepository(); this.productsService = new ProductsService(); }
public AllListsViewModel(IPresentListRepository listRepository, IViewModelFactory viewModelFactory) { _listRepository = listRepository; _viewModelFactory = viewModelFactory; NewListCommand = new RelayCommand(CreateNewList); ShowPresentsCommand = new RelayCommand(ShowPresents); }
public PresentListViewModel(PresentList presentList, IPresentListRepository listRepository, IViewModelFactory viewModelFactory) { _presentList = presentList; _listRepository = listRepository; _viewModelFactory = viewModelFactory; EditCommand = new RelayCommand(EditList); AddPresentCommand = new RelayCommand(AddPresent); }
public EditableListViewModel(IPresentListRepository listRepository, PresentList list) { _listRepository = listRepository; _list = list; SaveCommand = new RelayCommand(SavePresent, CanSavePresent); BeginEdit(); }