public List <GrowthMeasurement> GetMeasurements(DataType dataType) { if (Measurements.ContainsKey(dataType)) { return(Measurements[dataType]); } return(null); }
public void SetMeasurements(List <GrowthMeasurement> growthMeasurements, DataType dataType) { if (Measurements.ContainsKey(dataType)) { Measurements[dataType] = growthMeasurements; } else { Measurements.Add(dataType, growthMeasurements); } }