Beispiel #1
0
        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);
        }
Beispiel #2
0
 public ImageLoader(UiConfigRepository configRepository)
 {
     _configRepository = configRepository;
     Dpi.Changed      += ClearCache;
 }