/***************************************************************************** * FUNCTION: GetListOfAvailableMarkets * Description: * Parameters: None *****************************************************************************/ public List <String> GetListOfAvailableMarkets(MarketRegion pSelectedRegion) { List <String> return_list = new List <string>(); int mkt_index = 0; if (SelectableMarketRegions.Contains(pSelectedRegion)) { mkt_index = SelectableMarketRegions.IndexOf(pSelectedRegion); return_list = new List <string>(ListOfMarkets[mkt_index].Select(i => i.name).ToList()); } return(return_list); }
/***************************************************************************** * FUNCTION: getMarketsInRegion * Description: * Parameters: None *****************************************************************************/ public string[] getMarketsInRegion(MarketRegion pRegion) { List <string> retun_list = new List <string>(); return(retun_list.ToArray <string>()); }