private void EnterButton_Click(object sender, EventArgs e)
        {
            try
            {
                // what state are we in?
                switch (eInternalState)
                {
                case eStates.eConnected:
                    DisableEverything();
                    // check for Account Number filled in and PIN complete
                    _accountString = AccountInputBox.Text.Trim();
                    if (_accountString.Length == 0)
                    {
                        throw new Exception("This just ain't right - no Account");
                    }

                    if (_pinString.Length != 4)
                    {
                        throw new Exception("This just ain't right - PIN Incomplete");
                    }

                    // hide the PIN box
                    PINBox.Visible = false;
                    PINBox.SendToBack();

                    // create an account handler, with all the available info
                    _accountHandler = new AccountHandler(m_Connection);

                    // set the trace window
                    _accountHandler.TraceTextBox = this.ScreenText;

                    // try to logon the account
                    _accountHandler.ValidateAccount(_accountString, _pinString);

                    // get all of the accounts already
                    _accountHandler.RetrieveAccounts();

                    // say that we now have the main menu
                    SetMainMenu();

                    break;

                default:
                    throw new Exception("This just ain't right, Default = " + eInternalState.ToString());
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);

                // as this is a failure to log in, set up the original state
                SetOpeningState();
            }
        }
        private void EnablePINs()
        {
            ChangePINs(true);
            _pinString = "";

            // set the input focus to the Text Box for PIN Input
            PINBox.Visible = true;
            PINBox.BringToFront();
            PINBox.Text = _pinString;
            PINBox.Focus();
        }