コード例 #1
0
 private void onWatcherEvent(object sender, RemoteRecords notes)
 {
     if (this.BooksUpdated != null)
     {
         this.BooksUpdated(sender, notes);
     }
 }
コード例 #2
0
ファイル: DataWatcher.cs プロジェクト: prajsekar/noteapp
        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);
        }