/// <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); }
/// <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); }
/// <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); }