コード例 #1
0
 public PdfViewModel()
 {
     _bookMarkService = new BookMarkService(new BookMarkRepository());
     _bookService = new BookService(new BookRepository());
     BookMarksVisibility = Visibility.Collapsed;
     BMarks = new List<BMark>();
 }
コード例 #2
0
ファイル: Importer.cs プロジェクト: nathanashton/BookieUWP
        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;
        }
コード例 #3
0
ファイル: Tagger.cs プロジェクト: nathanashton/BookieUWP
 public Tagger(IBookRepository bookRepository)
 {
     _bookDomain = new BookService(bookRepository);
 }