public static void Init() { items.Clear(); var oneItemSelected = false; foreach (var cd in GoogleMovies.GoogleMovies.Data.List) { var item = new ListItem(); item.AdditionalProperties[NAME] = cd.Current.Id; item.SetLabel("Name", cd.Current.Name + " - " + cd.Current.Address); items.Add(item); if (oneItemSelected) { continue; } CinemaHome.SelectCinema(cd.Current.Id); oneItemSelected = true; } items.FireChange(); }
public static void Select(ListItem item) { CinemaHome.SelectCinema((string)item.AdditionalProperties[NAME]); ServiceRegistration.Get <IScreenManager>().CloseTopmostDialog(); }