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; }
private void btnClaimConfirm_Click(object sender, EventArgs e) { TerminalScreenManager.claimConfirm(); }
private void btnService_Click(object sender, EventArgs e) { TerminalScreenManager.serviceMenu(); }