예제 #1
0
파일: UiModel.cs 프로젝트: Zelfrom/Mtgdb
        public UiModel(
            ImageLoader imageLoader,
            ImageRepository imageRepo,
            CardRepository cardRepo,
            UiConfigRepository uiConfigRepository,
            [Optional, Named("collection")] ICardCollection collection)
        {
            UIConfigRepository = uiConfigRepository;
            CardRepo           = cardRepo;
            Collection         = collection;
            ImageLoader        = imageLoader;
            ImageRepo          = imageRepo;

            LanguageController = new LanguageController(CardLocalization.DefaultLanguage);
        }
예제 #2
0
 public ImageLoader(UiConfigRepository configRepository)
 {
     _configRepository = configRepository;
     Dpi.Changed      += ClearCache;
 }