public Importer(SourceDirectory source) { _excludedDomain = new ExcludedDomain(); ProgressService.RegisterPublisher(this); _source = source; _source.Books = new HashSet <Book>(); _foundPdfFiles = new List <string>(); Worker = new BackgroundWorker(); Worker.DoWork += _worker_DoWork; Worker.ProgressChanged += _worker_ProgressChanged; Worker.RunWorkerCompleted += _worker_RunWorkerCompleted; Worker.WorkerReportsProgress = true; Worker.WorkerSupportsCancellation = true; ProgressArgs = new ProgressWindowEventArgs(); _booksImported = 0; _booksExisted = 0; _booksExcluded = 0; }
public Importer(SourceDirectory source) { _excludedDomain = new ExcludedDomain(); ProgressService.RegisterPublisher(this); _source = source; _source.Books = new HashSet<Book>(); _foundPdfFiles = new List<string>(); Worker = new BackgroundWorker(); Worker.DoWork += _worker_DoWork; Worker.ProgressChanged += _worker_ProgressChanged; Worker.RunWorkerCompleted += _worker_RunWorkerCompleted; Worker.WorkerReportsProgress = true; Worker.WorkerSupportsCancellation = true; ProgressArgs = new ProgressWindowEventArgs(); _booksImported = 0; _booksExisted = 0; _booksExcluded = 0; }
public SettingsViewModel() { var all = new ExcludedDomain().GetAllExcluded(); Excluded = new ObservableCollection<Excluded>(all); }
public SettingsViewModel() { var all = new ExcludedDomain().GetAllExcluded(); Excluded = new ObservableCollection <Excluded>(all); }