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)); }
public IEnumerable <Note> GetCurrentNotes() { return(CollectionNotes.ToArray()); }
public void RemoveNote(Note note) { CollectionNotes.Remove(note); this.OnPropertyChanged("NotesCount"); }