Пример #1
0
        public AppData()
        {
            this.LatestChapters = new ObservableCollection<MangaAbstractModel>();
            this.Series = new SeriesByName(new List<SeriesModel>());
            this.ChaptersInSeries = new ObservableCollection<MangaAbstractModel>();
            this._currentlyViewingSeries = null;
            this._currentlyViewingChapter = null;
            this._currentlyViewingPage = -1;

            this._downloadAllContext = 0;
            this._downloadAllProgress = new Dictionary<uint, uint>();

            this._downloadPageContext = 0;
            this._downloadPageProgress = new Dictionary<uint, uint>();

            _backgroundTransfer = new BackgroundTransfer();

            _mangaDB = new MangaDataContext(Constants._DBConnectionString);
            if (!_mangaDB.DatabaseExists())
            {
                _mangaDB.CreateDatabase();
            }
        }
Пример #2
0
 public ScheduledAgent()
 {
     _mangaDB = new MangaDataContext(Constants._DBConnectionString);
     _backgroundTransfer = new BackgroundTransfer();
     _waitHandle = new AutoResetEvent(false);
 }