public void SetVisibleButton(TenderTypeButton button, bool visible)
        {
            ButtonFxn fxn  = this.setButtonVisible;
            object    parm = visible;

            this.setButtonFxn(button, fxn, parm);
        }
        public void MoveButtonVertical(TenderTypeButton button, int amt)
        {
            ButtonFxn fxn  = this.moveButtonVertical;
            object    parm = amt;

            this.setButtonFxn(button, fxn, parm);
        }
        public void SetEnableButton(TenderTypeButton button, bool enabled)
        {
            ButtonFxn fxn  = this.setButtonEnable;
            object    parm = enabled;

            this.setButtonFxn(button, fxn, parm);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="button"></param>
        /// <param name="fxn"></param>
        /// <param name="parm"></param>
        /// <returns></returns>
        private bool setButtonFxn(TenderTypeButton button, ButtonFxn fxn, object parm)
        {
            if (fxn == null || parm == null)
            {
                return(false);
            }

            Button btn = null;

            switch (button)
            {
            case TenderTypeButton.CASH:
                btn = this.cashButton;
                break;

            case TenderTypeButton.CHECK:
                btn = this.checkButton;
                break;

            case TenderTypeButton.CREDITORBILLAP:
                btn = this.creditCardButton;
                break;

            case TenderTypeButton.DEBIT:
                btn = this.debitCardButton;
                break;

            case TenderTypeButton.SHOPCREDIT:
                btn = this.shopCreditButton;
                break;

            case TenderTypeButton.PAYPAL:
                btn = this.paypalButton;
                break;

            default:
                break;
            }
            var rt = false;

            if (btn != null)
            {
                rt = fxn.Invoke(btn, parm);
            }

            return(rt);
        }