public SolutionAttrTable(Solution solution) { _solution = solution; baseInfo = new BaseInfo("基本信息"); heatInfos = new CustomAttrCollection(); int heattag = 1; if (solution != null) { if (solution.HeatProducers.Count != 0) { foreach (var heatproducer in HeatSourceLayoutApp.currentSolution.HeatProducers.Values) { heatInfos.Add(new HeatProducerInfo("热源" + (heattag++), heatproducer)); } } totalInfo = new TotoalInfo("工程总表", _solution); } }