Пример #1
0
        protected internal override event OrderStateHandler HowCost;   //when cost of order is determined

        //method for call event
        private void CallEvent(OrderEvents e, OrderStateHandler handler)
        {
            if (e != null)
            {
                handler?.Invoke(this, e);
            }
        }
Пример #2
0
 // method for show message of event when cost is determined
 protected override void OnCost(OrderEvents e)
 {
     CallEvent(e, HowCost);
 }
Пример #3
0
 // method for show message of event when cost is determined
 protected virtual void OnCost(OrderEvents e)
 {
     CallEvent(e, HowCost);
 }