void HandleRemoveNoteEvent(Note note) { // Remove NoteUpdater.SaveNote(book, pageID, String.Empty, note.NoteID); LoadNoteViews(); }
private void SaveNote() { HideKeyboard(); if (!String.IsNullOrEmpty(NoteBook.ID) && !String.IsNullOrEmpty(pageID)) { NoteUpdater.SaveNote(NoteBook, pageID, textView.Text); } }
void HandleAddTouchUpInside(object sender, EventArgs e) { if (note == null) { note = NoteUpdater.SaveNote(book, pageID, textView.Text); } else { note = NoteUpdater.SaveNote(book, pageID, textView.Text, note.NoteID); } if (AddNoteEvent != null) { AddNoteEvent(note); } }