Exemple #1
0
        private void UpdateConnectionList(string text)
        {
            if (this.InvokeRequired)
            {
                UpdateConnectionsListDelegate updateDel = new
                                                          UpdateConnectionsListDelegate(UpdateConnectionList);

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

                this.Invoke(updateDel, new object[] { text });
            }
            else
            {
                connectionList.Items.Add(text);
            }
        }