Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
 /// <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);
     }
 }