Esempio n. 1
0
 private void ItemResult_ItemActivated(object sender, Qios.DevSuite.Components.QCompositeEventArgs e)
 {
     if (simbolCalculate == true)
     {
         //加载结果页窗体
         FormOutPut outform = new FormOutPut();
         string     name    = outform.Name;
         //使用循环判断当前已经打开的窗体中是否有结果的窗体
         foreach (DockContent item in idockPanel.Contents)
         {
             if (item.Name == name)
             {
                 item.Activate();
                 return;
             }
         }
         //如果上面满足if条件的话,就会运行到return,直接跳出代码,不会再执行下面这两句代码
         outform.Show(idockPanel);
     }
     else
     {
         MessageBox.Show("Please calculate first", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 2
0
 private void ItemExport_ItemActivated(object sender, Qios.DevSuite.Components.QCompositeEventArgs e)
 {
     FormOutPut.ExportExcel("result", FormOutPut.pubdgv);
 }