Пример #1
0
        public bool CloseConnection(string identify)
        {
            IrcConection connection = this.GetConnection(identify);

            if (connection == null)
            {
                return(false);
            }

            connection.Close();
            this.Nodes[identify].Remove();
            this.channel1.RemoveServer(identify);
            if (this.channel1.SelectedServer == identify)
            {
                string ns = this.channel1.GetTopServer();
                if (ns == null)
                {
                    //this.OpenNewServerDialog();
                    return(true);
                }
                this.channel1.Select(ns, "*");
            }
            return(true);
        }