Пример #1
0
 public BestShotMessage MakeBestShotMessage(int shooterId, int laneId, int laneNumber, DateTime timestamp, decimal primaryScore,
   decimal secondaryScore, int shotNbr, int programNumber)
 {
   var message = new BestShotMessage(shooterId, laneId, laneNumber, timestamp, primaryScore, secondaryScore, shotNbr, programNumber);
   message.ProcessDelegate = _messageHandler.ProcessBestShotMessage;
   return message;
 }
Пример #2
0
        public BestShotMessage MakeBestShotMessage(int shooterId, int laneId, int laneNumber, DateTime timestamp, decimal primaryScore,
                                                   decimal secondaryScore, int shotNbr, int programNumber)
        {
            var message = new BestShotMessage(shooterId, laneId, laneNumber, timestamp, primaryScore, secondaryScore, shotNbr, programNumber);

            message.ProcessDelegate = _messageHandler.ProcessBestShotMessage;
            return(message);
        }
    public void ProcessBestShotMessage(BestShotMessage bestShotMessage)
    {
      ShotEventArgs e = new ShotEventArgs
      {
        PrimaryScore = bestShotMessage.PrimaryScore,
        SecondaryScore = bestShotMessage.SecondaryScore,
        ProgramNumber = bestShotMessage.ProgramNumber,
        LaneNumber = bestShotMessage.LaneNumber,
        LaneId = bestShotMessage.LaneId,
        Ordinal = bestShotMessage.ShotNbr,
      };

      OnBestShot(e);
    }