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