This class stores information about a give attraction for a CityInformation instance.
Inheritance: NSObject
コード例 #1
0
 /// <summary>
 /// Raises the attraction highlighted event.
 /// </summary>
 /// <param name="attraction">The <c>AttractionInformation</c> object for the highlighted row.</param>
 internal void RaiseAttractionHighlighted(AttractionInformation attraction)
 {
     // Inform caller
     if (this.AttractionHighlighted != null)
     {
         this.AttractionHighlighted(attraction);
     }
 }
コード例 #2
0
		/// <summary>
		/// Adds the attraction to the city.
		/// </summary>
		/// <param name="attraction">The <c>AttractionInformation</c> object to add.</param>
		public void AddAttraction (AttractionInformation attraction)
		{
			// Mark as belonging to this city
			attraction.City = this;

			// Add to collection
			Attractions.Add (attraction);
		}
コード例 #3
0
        /// <summary>
        /// Adds the attraction to the city.
        /// </summary>
        /// <param name="attraction">The <c>AttractionInformation</c> object to add.</param>
        public void AddAttraction(AttractionInformation attraction)
        {
            // Mark as belonging to this city
            attraction.City = this;

            // Add to collection
            Attractions.Add(attraction);
        }
コード例 #4
0
		/// <summary>
		/// Adds the attraction to the city.
		/// </summary>
		/// <param name="name">The name of the attraction.</param>
		/// <param name="description">A short description of the attraction.</param>
		/// <param name="imageName">The <c>Assets.xcassets</c> name of the image to display for the attraction.</param>
		public void AddAttraction (string name, string description, string imageName)
		{
			// Create attraction
			var attraction = new AttractionInformation (name, description, imageName);

			// Mark as belonging to this city
			attraction.City = this;

			// Add to collection
			Attractions.Add (attraction);
		}
コード例 #5
0
        /// <summary>
        /// Adds the attraction to the city.
        /// </summary>
        /// <param name="name">The name of the attraction.</param>
        /// <param name="description">A short description of the attraction.</param>
        /// <param name="imageName">The <c>Assets.xcassets</c> name of the image to display for the attraction.</param>
        public void AddAttraction(string name, string description, string imageName)
        {
            // Create attraction
            var attraction = new AttractionInformation(name, description, imageName);

            // Mark as belonging to this city
            attraction.City = this;

            // Add to collection
            Attractions.Add(attraction);
        }