private void UpdateUserList(UserData[] userlist)
{
if (InvokeRequired)
{
Invoke(new Action<UserData[]>(UpdateUserList), (object)userlist);
return;
}
m_onlineMode = false;
m_friendMode = false;
UserList.Items.Clear();
UserList.Items.AddRange(userlist);
m_filterUsers.Clear();
m_filterUsers.AddRange(userlist);
}