C# Class tvTable.CityInformation

Holds information about a given city that will be idplayed as the Sections of a Table View. Each City also contains a collection of AttractionInformation objects that will be the Rows in each Table View section.
Inheritance: NSObject
Datei anzeigen Open project: xamarin/monotouch-samples Class Usage Examples

Public Methods

Method Description
AddAttraction ( AttractionInformation attraction ) : void

Adds the attraction to the city.

AddAttraction ( string name, string description, string imageName ) : void

Adds the attraction to the city.

CityInformation ( string name ) : System

Initializes a new instance of the T:tvTable.CityInformation class.

Method Details

AddAttraction() public method

Adds the attraction to the city.
public AddAttraction ( AttractionInformation attraction ) : void
attraction AttractionInformation The AttractionInformation object to add.
return void

AddAttraction() public method

Adds the attraction to the city.
public AddAttraction ( string name, string description, string imageName ) : void
name string The name of the attraction.
description string A short description of the attraction.
imageName string The Assets.xcassets name of the image to display for the attraction.
return void

CityInformation() public method

Initializes a new instance of the T:tvTable.CityInformation class.
public CityInformation ( string name ) : System
name string The name of the city.
return System