/// <summary> /// Method for removing an object of type <see cref="Note"/> from a collection /// </summary> /// <param name="note">Note that is to be removed from the collection</param> public void RemoveNote(Note note) { if (this.notes.Contains(note)) { this.notes.Remove(note); } }
/// <summary> /// Method for adding an object of type <see cref="Note"/> to a collection /// </summary> /// <param name="note">Note that is to be added to the collection</param> public void AddNote(Note note) { if (!this.notes.Contains(note)) { this.notes.Add(note); } }