public void AddNewNote(Note note) { if (this.ShowNotes) { CollectionNotes.Add(note); } this.OnPropertyChanged("NotesCount"); }
public void Refresh() { CollectionNotes.Clear(); foreach (var item in GetNote()) { CollectionNotes.Add(item); } this.OnPropertyChanged(nameof(NotesCount)); }