示例#1
0
 private void SendEvent(EventHandler <TabulationStateEventArgs> handler,
                        TabulationStateEventArgs tabulationState)
 {
     handler?.Invoke(this, tabulationState);
 }
示例#2
0
 /// <summary>
 /// Inform listeners of a completed count.
 /// </summary>
 /// <param name="tabulationState">The current tabulation state at the time of update.</param>
 protected void CompleteCount(TabulationStateEventArgs tabulationState)
 => SendEvent(CountComplete, tabulationState);
示例#3
0
 /// <summary>
 /// Inform listeners of a completed tabulation round.
 /// </summary>
 /// <param name="tabulationState">The current tabulation state at the time of update.</param>
 protected void CompleteRound(TabulationStateEventArgs tabulationState)
 => SendEvent(RoundComplete, tabulationState);
 /// <summary>
 /// Inform listeners of a completed tabulation round.
 /// </summary>
 /// <param name="tabulationState">The current tabulation state at the time of update.</param>
 public new void CompleteRound(TabulationStateEventArgs tabulationState)
 => base.CompleteRound(tabulationState);