public void AddNote (Note note) { if (_notes != null) { _notes.Add (note); note.Save (); RaiseNoteSaved (); } }
public override void ViewDidLoad () { base.ViewDidLoad (); if (Note == null) { Note = new Note (); Notes.Add (Note); } else { titleTextField.Text = Note.Title; bodyTextView.Text = Note.Body; } titleTextField.BecomeFirstResponder (); titleTextField.ShouldReturn += tf => { bodyTextView.BecomeFirstResponder (); return true; }; }
public void UpdateNote (Note note) { note.Save (); RaiseNoteSaved (); }