예제 #1
0
        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);
 }
예제 #3
0
        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));
        }