public void AddRangeCanalPointResult(string canalStretchId, List <CanalPointResult> canalPointResults) { if (!CanalStretchResults.ContainsKey(canalStretchId)) { CanalStretchResults.Add(canalStretchId, new CanalStretchResult()); } CanalStretchResults[canalStretchId].CanalPointResults.AddRange(canalPointResults); }
public void AddCanalPointResult(string canalStretchId, double x, double waterLevel) { if (!CanalStretchResults.ContainsKey(canalStretchId)) { CanalStretchResults.Add(canalStretchId, new CanalStretchResult()); } CanalStretchResults[canalStretchId].CanalPointResults.Add(new CanalPointResult(x, waterLevel)); }