public ShotMessage MakeShotMessage(int shooterId, int laneId, int laneNumber, DateTime timestamp, decimal primaryScore,
   decimal secondaryScore, int shotNbr, int programNumber)
 {
   var message = new ShotMessage(shooterId, laneId, laneNumber, timestamp, primaryScore, secondaryScore, shotNbr, programNumber);
   message.ProcessDelegate += _messageHandler.ProcessShotMessage;
   return message;
 }
Beispiel #2
0
        public ShotMessage MakeShotMessage(int shooterId, int laneId, int laneNumber, DateTime timestamp, decimal primaryScore,
                                           decimal secondaryScore, int shotNbr, int programNumber)
        {
            var message = new ShotMessage(shooterId, laneId, laneNumber, timestamp, primaryScore, secondaryScore, shotNbr, programNumber);

            message.ProcessDelegate += _messageHandler.ProcessShotMessage;
            return(message);
        }
 public void ProcessShotMessage(ShotMessage shotMessage)
 {
   ShotEventArgs e = new ShotEventArgs
   {
     PrimaryScore = shotMessage.PrimaryScore,
     SecondaryScore = shotMessage.SecondaryScore,
     ProgramNumber = shotMessage.ProgramNumber,
     LaneNumber = shotMessage.LaneNumber,
     LaneId =  shotMessage.LaneId,
     Ordinal = shotMessage.ShotNbr,
   };
   OnShot(e);
 }