private void PopulateRooms(UserModel user, GetRoomsResponse o)
        {
            myScope.Model.Rooms = o.Rooms;
            myScope.Model.SelectedRoom = null;

            myScope.Apply();

            if (myScope.Model.Rooms.Count == 0) return;
            PopulateRoom(myScope.Model.Rooms[0]);
        }
 public void SendRooms(UserLogicModel user, GetRoomsResponse response)
 {
     qManager.SendMessage(user.Gateway, "Area.Site.GetRooms.Response", user, response);
 }
Beispiel #3
0
 private void PopulateRooms(UserModel user, GetRoomsResponse o)
 {
     myRoomsList.ClearItems();
     myLoadedRooms = o.Rooms;
     if (o.Rooms.Count == 0) return;
     foreach (var room in o.Rooms) {
         myRoomsList.AddItem(new ShuffListItem(room.RoomName, room.RoomName));
     }
     PopulateRoom(o.Rooms[0]);
 }