Esempio n. 1
0
 public PdfViewModel()
 {
     _bookMarkService = new BookMarkService(new BookMarkRepository());
     _bookService = new BookService(new BookRepository());
     BookMarksVisibility = Visibility.Collapsed;
     BMarks = new List<BMark>();
 }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 public Tagger(IBookRepository bookRepository)
 {
     _bookDomain = new BookService(bookRepository);
 }