コード例 #1
0
 /// <summary>
 /// Removes the first occurrence of the specified object from the collection.
 /// </summary>
 /// <param name="oFavourite"></param>
 public void Remove(RecentPlace oRecentPlace)
 {
     m_sRecentLocations.Remove(oRecentPlace);
 }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of the RecentPlacesCollection class that contains 
 /// elements copied from the specified favourite collection.
 /// </summary>
 /// <param name="oFavourites">Specifies an array of Favourite objects to add to the collection.</param>
 public RecentPlacesCollection(RecentPlace[] oRecentPlaces)
 {
     m_sRecentLocations = new List<RecentPlace>(oRecentPlaces);
 }
コード例 #3
0
 /// <summary>
 /// Adds the specified object to the end of the collection.
 /// </summary>
 /// <param name="oFavourite">Specifies a RecentPlace object to add to the end of the collection.</param>
 public void Add(RecentPlace oRecentPlace)
 {
     m_sRecentLocations.Add(oRecentPlace);
 }