public CityStateList(StateOrCity[] stateOrCityList, ChangeCity changeCityPage, int subContinentIndex) { InitializeComponent(); _changeCityPage = changeCityPage; _stateOrCityList = stateOrCityList; _subContinentIndex = subContinentIndex; CreateCityStateList(stateOrCityList); }
void CreateCityStateList(StateOrCity[] stateOrCityList) { for (int i = 0; i < stateOrCityList.Length; i++) { StateOrCity stateOrCity = stateOrCityList[i]; ListBoxItem item = new ListBoxItem(); TextBlock textBlock = new TextBlock(); item.Content = textBlock; textBlock.Text = stateOrCity._Name; textBlock.Style = Application.Current.Resources["CityStateListText"] as Style; CityStateListBox.Items.Add(item); item.Tag = i; } }
public SubContinent(String name, StateOrCity[] stateOrCityList, TimeZoneValues timeZone) { _Name = name; _stateOrCityList = stateOrCityList; _timeZone = timeZone; }