Ejemplo n.º 1
0
        private void OnConnectClick(object sender, EventArgs e)
        {
            _connectToolStripButton.Enabled      = false;
            _connectionStatusToolStripLabel.Text = "DISCONNECTED";

            if (_controller.ConnectToServer())
            {
                _connectionStatusToolStripLabel.Text = "CONNECTED";
            }
            else
            {
                _connectionStatusToolStripLabel.Text = "FAILURE";
            }
        }