Ejemplo n.º 1
0
    public bool InterceptActionPress()
    {
        TransactionBox       boxComponent = null;
        bool                 intercepted  = false;
        ITransactionListener listener     = null;

        if (boxComponents != null)
        {
            for (int i = 0; i < boxComponents.Length; i++)
            {
                boxComponent = boxComponents[i];
                if (boxComponent != null)
                {
                    if (boxComponent.ReactToActionPress())
                    {
                        intercepted = true;
                        listener    = boxSourceListeners[i];
                        if (listener != null)
                        {
                            listener.AdvanceTransaction();
                        }
                    }
                }
            }
        }
        return(intercepted);
    }