Ejemplo n.º 1
0
 public void Remove(Club ClubIn)
 {
     this.SelectedClubs.Remove(ClubIn);
 }
Ejemplo n.º 2
0
        }//end CopyClubs()

        /// <summary>
        /// Performs a binary search on the club list
        /// </summary>
        /// <param name="ClubIn"> The club that we're searching for </param>
        /// <returns> The indexed position of the Club or a negative number if nothing found </returns>
        public int SearchClubs(Club ClubIn)
        {
            return(this.SelectedClubs.BinarySearch(ClubIn));
        }//end SearchClubs(Club)
Ejemplo n.º 3
0
        }//end SortClubs()

        public void Add(Club ClubIn)
        {
            this.SelectedClubs.Add(ClubIn);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Compare two events based on the club title
 /// </summary>
 /// <param name="ClubIn"> The club to be compared to the calling club </param>
 /// <returns> a value gt 0 if the event is higher and lt 0 if lower </returns>
 public int CompareTo(Club ClubIn)
 {
     return(this.Name.CompareTo(ClubIn.Name));
 }//end CompareTo(Club)