private void btnLogin_Click(object sender, EventArgs e) { string providerCode = txtProviderCode.Text; TerminalService service = new TerminalService(); bool loginResult = false; try { loginResult = service.loginProvider(providerCode, TERMINAL_CODE); if (loginResult) { txtLog.Text += "LOGIN SUCCESSFUL"; TerminalScreenManager.providerLoggedIn(this); TerminalScreenManager.ProviderCode = providerCode; } else { txtLog.Text += "LOGIN FAILURE"; } } catch (Exception ex) { txtLog.Text += "CONNECTION FAILURE, " + ex.Message; } txtLog.Text += Environment.NewLine; }