private void Update(ConsecutiveObservation consecutiveObservation, SimpleObservation simpleObservation) { consecutiveObservation.HitCount += simpleObservation.HitCount; consecutiveObservation.HitTime += simpleObservation.HitTime; consecutiveObservation.EndTime = simpleObservation.EndTime; consecutiveObservation.ObservationDetailSeries.Add(simpleObservation); }
private void Add(SimpleObservation simpleObservation) { ConsecutiveObservation observationResult = new ConsecutiveObservation(); observationResult.Frequency = simpleObservation.Frequency; observationResult.Stage = simpleObservation.Stage; observationResult.StartTime = simpleObservation.StartTime; observationResult.EndTime = simpleObservation.EndTime; observationResult.HitCount = simpleObservation.HitCount; observationResult.HitTime = simpleObservation.HitTime; observationResult.ObservationDetailSeries.Add(simpleObservation); consecutiveObservations_.Add(observationResult); }