public DownloadItem(DownloadJob job, string title, UserConfiguration userConfiguration) { Job = job; this.title = title; this.userConfiguration = userConfiguration; DownloadCommand = new UiCommand(Execute, () => !this.isDownloading); Job.DownloadProgressChanged += OnProgressChanged; }
public Video( Func <YoutubeVideo <DownloadItem>, DownloadJob, DownloadItem> downloadJobFactory, string baseurl, Action <Video> removeMe) : base(downloadJobFactory, baseurl) { RemoveFromListCommand = new UiCommand(RemoveItem, () => AvailableDownloads.All(x => x.Job.IsBusy == false)); this.removeMe = removeMe; }
public MainViewModel() { FindCommand = new UiCommand(ExecuteFind, () => this.canExecuteFind && !string.IsNullOrWhiteSpace(Url)); OpenSettingsCommand = new UiCommand(OpenSettings, () => true); }