Пример #1
0
        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>();
        }
Пример #2
0
 public void Handle(StartAllDownloads command)
 {
     comicStore.GetActiveComics()
     .Where(c => c.Status != Status.Paused)
     .ForEach(Start);
 }