Ejemplo n.º 1
0
 private void onWatcherEvent(object sender, RemoteRecords notes)
 {
     if (this.BooksUpdated != null)
     {
         this.BooksUpdated(sender, notes);
     }
 }
Ejemplo n.º 2
0
        public RemoteRecords getModified(long ticks)
        {
            Trace.WriteLine("Reading db...");
            var remoteRecords = new RemoteRecords();

            remoteRecords.books = service.bookService.getModified(ticks, userId).Select <Notebook, Notebook>((b) => PrimaryKeyTranslator.translate(b)).ToList <Notebook>();;
            remoteRecords.notes = service.noteService.getModified(ticks, userId).Select <Note, Note>((b) => PrimaryKeyTranslator.translate(b)).ToList <Note>();;;
            Trace.WriteLine(String.Format("Compleded reading db {0} {1}", remoteRecords.books != null, remoteRecords.notes != null));
            return(remoteRecords);
        }