public EditSimpleNoteDetailViewModel(SimpleNote simpleNote)
 {
     this.simpleNote = simpleNote;
 }
 public BaseNote GetNoteById(long id)
 {
     Debug.WriteLine("Searching notification with note_id " + id);
     ISQLiteStatement statement = dbConn.Prepare(SELECT_SIMPLE_NOTE_BY_ID);
     statement.Bind(1, id);
     SimpleNote note = null;
     while (statement.Step() == SQLiteResult.ROW)
     {
         note = new SimpleNote((long)statement[0], (String)statement[1], null, (String)statement[2]);
         ScheduledNotification notification;
         if (statement[4] != null)
         {
             long notificationId = (long)statement[4];
             notification = NotificationHelper.GetNotificationById((long)statement[4]);
             note.ScheduledNotification = notification;
         }
     }
     return note;
 }
 public EditSimpleNoteDetailViewModel()
 {
     this.simpleNote = new SimpleNote();
 }