public override void addPoints(MeasureQueueElement measureQueueElement) { int boardIndex = measureQueueElement.boardIndex; int id = (int)measureQueueElement.gatePacket.head.id; //Single gate. if ((id == (int)PacketId.AGate) || (id == (int)PacketId.BGate) || (id == (int)PacketId.CGate) || (id == (int)PacketId.IGate)) { if (singleCycleList == null) { return; } if ((boardIndex < 0) || (boardIndex >= singleCycleList.Count)) { return; } List <SingleGateSeries> singleLists = singleCycleList[boardIndex]; if (singleLists.Count == 0) { return; } for (int i = 0; i < singleLists.Count; i++) { singleLists[i].updataFastLine(measureQueueElement.gatePacket, boardIndex); } } else if ((id == (int)PacketId.BA2Gate) || (id == (int)PacketId.AI2Gate) || (id == (int)PacketId.BI2Gate) || (id == (int)PacketId.CI2Gate)) { if (doubleCycleList == null) { return; } if ((boardIndex < 0) || (boardIndex >= doubleCycleList.Count)) { return; } List <DoubleGatesSeries> doubleLists = doubleCycleList[boardIndex]; if (doubleLists.Count == 0) { return; } for (int i = 0; i < doubleLists.Count; i++) { doubleLists[i].updataFastLine(measureQueueElement.gatePacket, boardIndex); } } else { return; } isSaved = false; }