예제 #1
0
 //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();
 }
예제 #2
0
 //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.");
     }
 }