private void CallEvent(AccountEventArg e, AccountStateHandler handler) { if (e != null) { handler?.Invoke(this, e); } }
protected virtual void OnCalculated(AccountEventArg e) { CallEvent(e, Calculated); }
protected virtual void OnClosed(AccountEventArg e) { CallEvent(e, Closed); }
protected virtual void OnAdded(AccountEventArg e) { CallEvent(e, Added); }
protected virtual void OnWithdrawed(AccountEventArg e) { CallEvent(e, Withdrawed); }
protected virtual void OnOpened(AccountEventArg e) { CallEvent(e, Opened); }