예제 #1
0
 public SubtotalMessage MakeSubtotalMessage(int shooterId, int laneId, int laneNumber, DateTime timestamp, int primaryTotal,
   int secondaryTotal)
 {
   var message = new SubtotalMessage(shooterId, laneId, laneNumber, timestamp, primaryTotal, secondaryTotal);
   message.ProcessDelegate += _messageHandler.ProcessSubtotalMessage;
   return message;
 }
예제 #2
0
        public SubtotalMessage MakeSubtotalMessage(int shooterId, int laneId, int laneNumber, DateTime timestamp, int primaryTotal,
                                                   int secondaryTotal)
        {
            var message = new SubtotalMessage(shooterId, laneId, laneNumber, timestamp, primaryTotal, secondaryTotal);

            message.ProcessDelegate += _messageHandler.ProcessSubtotalMessage;
            return(message);
        }
    public void ProcessSubtotalMessage(SubtotalMessage subtotalMessage)
    {
      SubtEventArgs e = new SubtEventArgs
      {
        LaneId = subtotalMessage.LaneId,
        LaneNumber = subtotalMessage.LaneNumber
      };

      OnSubt(e);
    }