} // Thing list of the pawnshop private void CallEvent(PawnshopEventArgs e, PawnshopStateHandler handler) { if (e != null) { handler?.Invoke(this, e); } }// Method for calling event
protected virtual void OnBought(PawnshopEventArgs e) { CallEvent(e, Bought); }
}// Method for calling event // Calling an event. For every event we have unique virtual method protected virtual void OnSold(PawnshopEventArgs e) { CallEvent(e, Sold); }