public void SelectPoints(IReadOnlyCollection <TimedValue> timedValues) { IReadOnlyCollection <TimedValue> firstTimeSelected = timedValues.Except(_selectionCount.Keys).ToList(); firstTimeSelected.ForEach(x => _selectionCount[x] = 0); timedValues.ForEach(x => _selectionCount[x]++); OnPointsSelected?.Invoke(this, new TimedValuesArgs(firstTimeSelected)); }
public void SelectPoints(IEnumerable <TimedTelemetrySnapshot> timedTelemetrySnapshots) { var telemetrySnapshotsEnumerated = timedTelemetrySnapshots.ToArray(); IReadOnlyCollection <TimedTelemetrySnapshot> firstTimeSelected = telemetrySnapshotsEnumerated.Except(_selectionCount.Keys).ToList(); firstTimeSelected.ForEach(x => _selectionCount[x] = 0); //telemetrySnapshotsEnumerated.ForEach(x => _selectionCount[x]++); if (firstTimeSelected.Count == 0) { return; } OnPointsSelected?.Invoke(this, new TimedTelemetryArgs(firstTimeSelected)); }