예제 #1
0
        public async Task RemoveNoteAsync()
        {
            if (SelectedNote == null || NotesCollection.Count <= 0)
            {
                return;
            }

            await Task.FromResult(NotesCollection.Remove(SelectedNote));

            SelectedNote = NotesCollection.LastOrDefault();
        }
예제 #2
0
 public async Task AddNoteAsync()
 {
     NotesCollection.Add(new NoteModel());
     await Task.FromResult(SelectedNote = NotesCollection.LastOrDefault());
 }