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); } }
// method for show message of event when cost is determined protected override void OnCost(OrderEvents e) { CallEvent(e, HowCost); }
// method for show message of event when cost is determined protected virtual void OnCost(OrderEvents e) { CallEvent(e, HowCost); }