private void PopulateGames(UserModel user, GetGameTypesReceivedResponse o) { myScope.Model.GameTypes = o.GameTypes; myScope.Model.SelectedGameType = myScope.Model.GameTypes[0]; myScope.Apply(); myClientSiteManagerService.GetRooms(new GetRoomsRequest(o.GameTypes[0].Name)); }
public void SendGameTypes(UserLogicModel user, GetGameTypesReceivedResponse gameTypes) { qManager.SendMessage(user.Gateway, "Area.Site.GetGameTypes.Response", user, gameTypes); }
private void PopulateGames(UserModel user, GetGameTypesReceivedResponse o) { myGameTypeList.ClearItems(); foreach (var gameType in o.GameTypes) { myGameTypeList.AddItem(new ShuffListItem(gameType.Name, gameType.Name)); } myPageHandler.ClientSiteManager.GetRooms(new GetRoomsRequest(o.GameTypes[0].Name)); }