예제 #1
0
        void HandleRemoveNoteEvent(Note note)
        {
            // Remove
            NoteUpdater.SaveNote(book, pageID, String.Empty, note.NoteID);

            LoadNoteViews();
        }
예제 #2
0
        private void SaveNote()
        {
            HideKeyboard();

            if (!String.IsNullOrEmpty(NoteBook.ID) && !String.IsNullOrEmpty(pageID))
            {
                NoteUpdater.SaveNote(NoteBook, pageID, textView.Text);
            }
        }
예제 #3
0
        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);
            }
        }