Пример #1
0
 public NotePage(NoteData note = null)
 {
     InitializeComponent();
     currentNote = note;
     if (currentNote == null)
     {
         currentNote = new NoteData(App.notesViewModel.GenerateFileName(), "");
         App.notesViewModel.Notes.Add(currentNote);
     }
     BindingContext = currentNote;
 }
Пример #2
0
        public async Task Write(NoteData note)
        {
            await note.Write();

            Sort();
        }