public void OnAddFourPlayerRoomList(FourPlayerRoomSequence rooms) { if (this.OnAdd4PRoomList != null) { this.OnAdd4PRoomList(rooms); } }
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); } }