Example #1
0
 private void CallEvent(AccountEventArg e, AccountStateHandler handler)
 {
     if (e != null)
     {
         handler?.Invoke(this, e);
     }
 }
Example #2
0
 protected virtual void OnCalculated(AccountEventArg e)
 {
     CallEvent(e, Calculated);
 }
Example #3
0
 protected virtual void OnClosed(AccountEventArg e)
 {
     CallEvent(e, Closed);
 }
Example #4
0
 protected virtual void OnAdded(AccountEventArg e)
 {
     CallEvent(e, Added);
 }
Example #5
0
 protected virtual void OnWithdrawed(AccountEventArg e)
 {
     CallEvent(e, Withdrawed);
 }
Example #6
0
 protected virtual void OnOpened(AccountEventArg e)
 {
     CallEvent(e, Opened);
 }