Пример #1
0
        private void OpenConnection(string identify, string host, int port, string nick, string[] channels)
        {
            IrcConection connection = new IrcConection(this, identify, host, port, nick, channels);

            connection.SetEventListener(OnEvents);
            this.channel1.CreateServer(identify, nick);
            this.treeView1.BeginUpdate();
            TreeNode node = this.treeView1.Nodes.Add(identify);

            this.Nodes.Add(identify, node);
            this.treeView1.EndUpdate();
            this.treeView1.SelectedNode = node;
            this.connections.Add(connection);
            connection.Connect();
        }