예제 #1
0
        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;
        }
예제 #2
0
 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;
     }
 }
예제 #3
0
 public void addBimReview(BimReview bimReview)
 {
     data.Add(bimReview);
 }