public LibraryContentViewModel() { this.Commands = new ObservableCollection <BaseCommand>(); this.Library = new LibraryViewModel(); this.Commands.Add(new UpdateWithPauseCommand(this, Library)); this.Commands.Add(new OpenFolderCommand()); }
public UpdateWithPauseCommand(LibraryViewModel view, Core.Services.LibraryViewModel library) { this.library = library; this.Update = new UpdateVisibleMangaCommand(view, library); this.Pause = new PauseCommand(library); this.Continue = new ContinueCommand(library); this.ActiveCommand = this.Update; this.Update.CanExecuteChanged += UpdateOnCanExecuteChanged; }