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 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); }