Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 public MainViewModel()
 {
     FindCommand         = new UiCommand(ExecuteFind, () => this.canExecuteFind && !string.IsNullOrWhiteSpace(Url));
     OpenSettingsCommand = new UiCommand(OpenSettings, () => true);
 }