public EditPhotoNoteViewModel(PhotoNote simpleNote) { this.photoNote = simpleNote; }
public BaseNote GetNoteById(long id) { ISQLiteStatement statement = dbConn.Prepare(SELECT_PHOTO_NOTE_BY_ID); statement.Bind(1, id); PhotoNote note = null; while (statement.Step() == SQLiteResult.ROW) { note = new PhotoNote((long)statement[0], (String)statement[1], null, (String)statement[2], (String)statement[3]); ScheduledNotification notification; if (statement[5] != null) { long notificationId = (long)statement[5]; notification = NotificationHelper.GetNotificationById(notificationId); note.ScheduledNotification = notification; } } return note; }
public EditPhotoNoteViewModel() { this.photoNote = new PhotoNote(); }