Пример #1
0
 public void AddNewNote(Note note)
 {
     if (this.ShowNotes)
     {
         CollectionNotes.Add(note);
     }
     this.OnPropertyChanged("NotesCount");
 }
Пример #2
0
 public void Refresh()
 {
     CollectionNotes.Clear();
     foreach (var item in GetNote())
     {
         CollectionNotes.Add(item);
     }
     this.OnPropertyChanged(nameof(NotesCount));
 }
Пример #3
0
 public IEnumerable <Note> GetCurrentNotes()
 {
     return(CollectionNotes.ToArray());
 }
Пример #4
0
 public void RemoveNote(Note note)
 {
     CollectionNotes.Remove(note);
     this.OnPropertyChanged("NotesCount");
 }