Ejemplo n.º 1
0
 public void OnAddFourPlayerRoomList(FourPlayerRoomSequence rooms)
 {
     if (this.OnAdd4PRoomList != null)
     {
         this.OnAdd4PRoomList(rooms);
     }
 }
Ejemplo n.º 2
0
 private void _client_OnAdd4PRoomList(FourPlayerRoomSequence rooms)
 {
     foreach (FourPlayerRoom room in rooms.Elements)
     {
         ListViewItem item = new ListViewItem(new string[] { room.Name, room.PlayerCount.ToString() });
         item.Name = room.Identity.ToString();
         MethodInvoker methodInvokerDelegate = delegate() {
             this.FourPlayerList.Items.Add(item);
         };
         base.Invoke(methodInvokerDelegate);
     }
 }