Esempio n. 1
0
        internal void newServer(ConnectWindow connectWindow)
        {
            ServerWindow serverWindow = new ServerWindow(this, connectWindow.serverBox.Text);

            IRCConfig.WriteServerConnectSettings(connectWindow);
            serverWindow.startServer(connectWindow.serverBox.Text, Int32.Parse(connectWindow.portBox.Text), connectWindow.passwordBox.Text, connectWindow.nicknameBox.Text, connectWindow.usernameBox.Text, connectWindow.realnameBox.Text, connectWindow.altNickBox1.Text, connectWindow.altNickBox2.Text);

            TreeNode serverNode = new TreeNode(serverWindow.address);

            serverNode.Tag  = serverWindow;
            serverNode.Name = serverWindow.address;
            serverWindow.setNode(serverNode);
            ((ChatWindow)serverNode.Tag).MdiParent = this;
            ((ChatWindow)serverNode.Tag).Show();
            locationTree.Nodes.Add(serverNode);
            locationTree.SelectedNode = serverNode;
        }
Esempio n. 2
0
        private void connectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConnectWindow connect = new ConnectWindow(this);

            connect.Show();
        }