예제 #1
0
        public void FillPrices(PriceRepository priceRepository)
        {
            foreach (var card in Cards)
            {
                card.PricesValues = priceRepository.GetPrice(card);
            }

            IsPriceLoadingComplete = true;
            PriceLoadingComplete?.Invoke();
        }
예제 #2
0
파일: Loader.cs 프로젝트: mtucker6784/Mtgdb
        public Loader(
            CardRepository repository,
            ImageRepository imageRepository,
            LocalizationRepository localizationRepository,
            CardSearcher cardSearcher,
            KeywordSearcher keywordSearcher,
            PriceRepository priceRepository)
        {
            _repository             = repository;
            _imageRepository        = imageRepository;
            _localizationRepository = localizationRepository;
            _cardSearcher           = cardSearcher;
            _keywordSearcher        = keywordSearcher;
            _priceRepository        = priceRepository;

            _loadingActions = createLoadingActions();
        }