private bool TestEventUrl() { var subscriptionsController = new SubscriptionsController(Properties.Settings.Default); bool testOk = subscriptionsController.TestWSConnection(eventBrokerWebServiceUrlTextBox.Text); if (!testOk) { MessageBox.Show(this, "Connection failed. The Event Broker Web Service URL is incorrect or the service is unavailable", "Connection failure", MessageBoxButtons.OK, MessageBoxIcon.Warning); } return(testOk); }