//ee
 private void menuItem17_Click(object sender, System.EventArgs e)
 {
     DrawingForm frmDrawing = (DrawingForm)this.ActiveMdiChild;
     frmDrawing.DiagramConvertXml();
     OutputForm form = new OutputForm();
     form.Text = "Generate";
     form.B3Action(frmDrawing.EEXmls);
     form.Show();
 }
 //ee
 private void menuItem15_Click(object sender, System.EventArgs e)
 {
     try
     {
         DrawingForm frmDrawing = (DrawingForm)this.ActiveMdiChild;
         frmDrawing.DiagramConvertXml();
         OutputForm form = new OutputForm();
         form.Text = "Calculate";
         form.B2Action(frmDrawing.EEXmls);
         form.Show();
     }
     catch
     {
         System.Windows.Forms.MessageBox.Show("Some components in the diagram may not be connected properly.");
     }
 }