public NotePage(NoteData note = null) { InitializeComponent(); currentNote = note; if (currentNote == null) { currentNote = new NoteData(App.notesViewModel.GenerateFileName(), ""); App.notesViewModel.Notes.Add(currentNote); } BindingContext = currentNote; }
public async Task Write(NoteData note) { await note.Write(); Sort(); }