Пример #1
0
 public ComicSourceInfo(ComicSnapshot snapshot,
                        ComicSource source,
                        IComicSourceCondition condition)
 {
     Snapshot     = snapshot;
     Source       = source;
     Condition    = condition;
     CanParse     = !(condition is null);
     WatchCommand = new RelayCommand(Watch);
     CopyCommand  = new RelayCommand(Copy);
     OpenCommand  = new AsyncRelayCommand(OpenAsync);
 }
Пример #2
0
 public StorableComicSourceInfo(ComicSnapshot snapshot,
                                ComicSource source,
                                IComicSourceCondition condition,
                                TStoreBox storeBox)
     : base(snapshot, source, condition)
 {
     StoreBox = storeBox;
     HasBox   = storeBox != null;
     CanStore = condition != null;
     ToggleSuperFavoriteCommand = new RelayCommand(ToggleSuperFavorite);
     AddCommand    = new AsyncRelayCommand(AddAsync);
     RemoveCommand = new RelayCommand(Remove);
     ToggleCommand = new AsyncRelayCommand(ToggleAsync);
     StoreService  = AppEngine.GetRequiredService <ComicStoreService <TStoreBox> >();
 }
Пример #3
0
 public WithImageStorableComicSourceInfo(ComicSnapshot snapshot, ComicSource source, IComicSourceCondition condition, WithImageComicStoreBox <TResource, TImage> storeBox) : base(snapshot, source, condition, storeBox)
 {
 }