예제 #1
0
        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;
        }
예제 #2
0
 private void btnClaimConfirm_Click(object sender, EventArgs e)
 {
     TerminalScreenManager.claimConfirm();
 }
예제 #3
0
 private void btnService_Click(object sender, EventArgs e)
 {
     TerminalScreenManager.serviceMenu();
 }