public PdfViewModel() { _bookMarkService = new BookMarkService(new BookMarkRepository()); _bookService = new BookService(new BookRepository()); BookMarksVisibility = Visibility.Collapsed; BMarks = new List<BMark>(); }
public Importer(IBookRepository bookRepository, ISourceRepository sourceRepository) { _sourcerepo = sourceRepository; _bookService = new BookService(bookRepository); _sourceService = new SourceService(sourceRepository); ProgressService.RegisterPublisher(this); Worker = new BackgroundWorker { WorkerReportsProgress = true, WorkerSupportsCancellation = true }; Worker.DoWork += Worker_DoWork; Worker.RunWorkerCompleted += Worker_RunWorkerCompleted; Worker.ProgressChanged += Worker_ProgressChanged; WorkerCleanup = new BackgroundWorker { WorkerReportsProgress = true, WorkerSupportsCancellation = true }; WorkerCleanup.DoWork += WorkerCleanup_DoWork; WorkerCleanup.RunWorkerCompleted += WorkerCleanup_RunWorkerCompleted; WorkerCleanup.ProgressChanged += WorkerCleanup_ProgressChanged; }
public Tagger(IBookRepository bookRepository) { _bookDomain = new BookService(bookRepository); }