public ISample Accept(StandardSample sample) { return(new StandardSample(sample.GetIdentifier(), sample.IsImposter(), GetScaledDimensions(sample), sample.GetOrder(), sample.GetDuration().HasValue)); }
public ISample Accept(StandardSample sample) { if (recalculateDuration) { return(new StandardSample(sample.GetIdentifier(), sample.IsImposter(), subsetRows, sample.GetOrder(), sample.GetDuration().HasValue)); } else { return(new StandardSample(sample.GetIdentifier(), sample.IsImposter(), subsetRows, sample.GetOrder(), sample.GetDuration())); } }