public HeatProducer GetHeatProducer(ObjectId id) { if (HeatProducers.ContainsKey(id)) { return(HeatProducers[id]); } return(null); }
/// <summary> /// 将要删除解决方案内的元素 /// 包括管道、管道结头、热源、热力站 /// </summary> /// <param name="id"></param> public void TryDeleteObjectInSolution(ObjectId id) { if (HeatProducers.ContainsKey(id)) { HeatProducers.Remove(id); return; } if (SubStations.ContainsKey(id)) { SubStations.Remove(id); return; } if (!WillDeletePipeLine(id)) { if (!WillDeleteSimpleJoints(id)) { WillDeleteMultiJoints(id); } } }