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

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

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