void ResolverOnUpdateUserList(UserList e) { listBox1.Items.Clear(); listBox1.Items.AddRange(e.Users.Cast<object>().ToArray()); }
public async Task ProcessPackage(User user, GetUserList package) { var userList = new UserList(); userList.Users.AddRange(mServer.Lobby.Values.Where(u => u.Room == user.Room || u.Room.ID == user.Room.ID).Select(u => u.ID)); await mServer.ClientListener.Send(user, userList); }