This class stores information about a give attraction for a CityInformation instance.
Inheritance: NSObject
Example #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);
     }
 }
		/// <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);
		}
Example #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);
        }
		/// <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);
		}
Example #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);
        }