private void Connect() { _connection = new ClientConnectionManager("127.0.0.1", 25565); if (_connection.ConnectToServer()) { lbl_connect.Text = "Connection successful."; btn_start.Enabled = true; } else { lbl_connect.Text = "Connection failed."; } }
private void Connect() { _connection = new ClientConnectionManager("127.0.0.1", 25565); if (_connection.ConnectToServer()) { lbl_connect.Text = "Connection successful."; btn_start.Enabled = true; } else { lbl_connect.Text = "Connection failed."; } }