Exemplo n.º 1
0
        private void connectButton_Click(object sender, EventArgs e)
        {
            string ip               = ipTextBox.Text;
            int    port             = Convert.ToInt32(portBox.Value);
            bool   connectionResult = AdminApp.ConnectToServer(ip, port);

            if (connectionResult)
            {
                infoLabel.Text      = "Connected to: " + ip + ":" + port;
                LoginButton.Enabled = true;
                this.AcceptButton   = LoginButton;
            }
        }