private void OnDataChanged(object sender, ServerStatus status) { labelStatus.BeginInvoke(new MethodInvoker(delegate { if (status.IsOnline()) { labelStatus.Text = "Online " + status.GetNumOnlineClients() + "/" + status.GetMaxClients(); } else { labelStatus.Text = "Offline 0/0"; } if (comboBoxConnectedUsers.Items.Count != status.GetClientIdsConnected().Count) { comboBoxConnectedUsersRefresh(status); } })); }