public void showResult(BimReview result) { string text = null; int index = 0; text = "规范编号:" + result.standardCode + "\n"; text += "条文编号:" + result.compulsory + "\n"; text += "审查结论:" + result.comment + "\n"; text += "违规构件如下:\n"; foreach (ComponentAnnotation annotation in result.violationComponents) { ++index; text += "构件" + index + ":\n"; text += " 构件ID:" + annotation.Id + "\n"; text += " 构件类型:" + annotation.type + "\n\n"; } richTextBox.Text = text; }
private void button_Ok_Click(object sender, EventArgs e) { if (archXDB_FileName == null && mechXDB_FileName == null) { MessageBox.Show("未指定XDB文件路径"); } else if (standardCode == null || itemCode == null) { MessageBox.Show("未指定要审查的条文"); } else { Visible = false; HVACFunction hvacFunction = new HVACFunction(archXDB_FileName, mechXDB_FileName); BimReview result = runChecker(standardCode, itemCode); Form_showResult form_showResult = new Form_showResult(); form_showResult.showResult(result); form_showResult.ShowDialog(); Visible = true; } }
public void addBimReview(BimReview bimReview) { data.Add(bimReview); }