public void Initialize(MainForm form) { this.form = form; appLog.Send("Woofy {0} (c) {1}", appInfo.Version.ToPrettyString(), appInfo.Company); appLog.Send(appSettings.HomePage); ThreadPool.QueueUserWorkItem(o => appController.Execute <AppUpdateCheck>()); Comics = new BindingList <ComicViewModel>( comicStore .GetActiveComics() .Select <Comic, ComicViewModel>(mapper.MapToViewModel) .ToList() ); appController.Execute <StartAllDownloads>(); }
public void Handle(StartAllDownloads command) { comicStore.GetActiveComics() .Where(c => c.Status != Status.Paused) .ForEach(Start); }