public void Remove(Club ClubIn) { this.SelectedClubs.Remove(ClubIn); }
}//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)
}//end SortClubs() public void Add(Club ClubIn) { this.SelectedClubs.Add(ClubIn); }
/// <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)