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); }
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> >(); }
public WithImageStorableComicSourceInfo(ComicSnapshot snapshot, ComicSource source, IComicSourceCondition condition, WithImageComicStoreBox <TResource, TImage> storeBox) : base(snapshot, source, condition, storeBox) { }