Example #1
0
 private void CreateGyroFacCalWin(ref PortManager target)
 {
     if (target != null)
     {
         if (!base.IsDisposed)
         {
             string str = target.comm.sourceDeviceName + ": Gyro Factory Calibration";
             frmSetDRGyroFacCal cal = new frmSetDRGyroFacCal(target.comm);
             cal.Text = str;
             cal.ShowDialog();
         }
         else
         {
             MessageBox.Show("Port not initialized!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         }
     }
 }
Example #2
0
 /*
  * //!
 public frmGPIBCtrl CreateGPIBCtrlWindow()
 {
     frmGPIBCtrl childInstance = frmGPIBCtrl.GetChildInstance();
     if (childInstance.IsDisposed)
     {
         childInstance = new frmGPIBCtrl();
     }
     childInstance.MdiParent = this;
     childInstance.Show();
     return childInstance;
 }
 */
 private void CreateGyroFacCalWin()
 {
     if (PortManagerHash.Count > 0)
     {
         PortManager manager = null;
         bool flag = false;
         foreach (string str in PortManagerHash.Keys)
         {
             if (!(str == clsGlobal.FilePlayBackPortName))
             {
                 manager = (PortManager) PortManagerHash[str];
                 if ((manager != null) && manager.comm.IsSourceDeviceOpen())
                 {
                     flag = true;
                     break;
                 }
             }
         }
         if (flag && (manager != null))
         {
             string str2 = "Gyro Factory Calibration";
             frmSetDRGyroFacCal cal = new frmSetDRGyroFacCal(manager.comm);
             cal.Text = str2;
             cal.ShowDialog();
         }
     }
 }