public EBookReaderMark(BookNavigationData.UserStatus newStatus)
 {
     NewStatus = newStatus;
     this.InitializeComponent();
     this.DataContext = this;
     this.Loaded     += EBookReaderMark_Loaded;
 }
Пример #2
0
        private void MarkBookUserCurrStatus(BookNavigationData.UserStatus status)
        {
            var bookdb = BookDataContext.Get();
            var nd     = EnsureBookNavigationData(bookdb);

            if (nd == null)
            {
                return;
            }
            nd.TimeMarkedDone = DateTimeOffset.Now;
            nd.CurrStatus     = status; // e.g. Abandoned, Read, Reading, NoStatus
            CommonQueries.BookSaveChanges(bookdb);
        }