private void UpdateConnectionList(string text) { if (this.InvokeRequired) { UpdateConnectionsListDelegate updateDel = new UpdateConnectionsListDelegate(UpdateConnectionList); this.Invoke(updateDel, new object[] { text }); } else { connectionList.Items.Add(text); } }
private void UpdateConnectionList(string text) { if (this.InvokeRequired) { UpdateConnectionsListDelegate updateDel = new UpdateConnectionsListDelegate(UpdateConnectionList); this.Invoke(updateDel, new object[] { text }); } else { connectionList.Items.Add(text); } }