Esempio n. 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;
 }
Esempio n. 2
0
        public async Task Write(NoteData note)
        {
            await note.Write();

            Sort();
        }