Exemple #1
0
        private void OnBillStacking(BillStackedEventArgs e)
        {
            if (BillStacking != null)
            {
                bool cancel = false;
                bool hold   = false;
                foreach (BillStackingHandler subscriber in BillStacking.GetInvocationList())
                {
                    subscriber(this, e);

                    if (e.Hold)
                    {
                        hold = true;
                        break;
                    }

                    if (e.Cancel)
                    {
                        cancel = true;
                        break;
                    }
                }

                _holdBill   = hold;
                _ReturnBill = cancel;
            }
        }
        private void OnBillStacking(BillStackedEventArgs e)
        {
            if (BillStacking != null)
            {
                bool cancel = false;
                foreach (BillStackingHandler subscriber in BillStacking.GetInvocationList())
                {
                    subscriber(this, e);

                    if (e.Cancel)
                    {
                        cancel = true;
                        break;
                    }
                }

                _ReturnBill = cancel;
            }
        }