/**<summary> Get games and show game selection dialog </summary>*/ public async void SelectGame() { Tuple <bool, Parser.Game[]> result = await ServerAPI.GetGames(); if (!result.Item1) { return; } games = result.Item2; if (games.Length == 0) { NativeMethods.ShowToast("No games found on server"); return; } DialogManager.ShowSimple("Select game", games.Select(b => b.name + " " + b.description).ToArray(), false, (int selectedIndex) => { //ToastManager.Show(games[selectedIndex].name + " selected"); gameID = games[selectedIndex].id; SetupWorld(gameID); }); }