Пример #1
0
 private void CreateElevationMaskWin(ref PortManager target)
 {
     if (target != null)
     {
         if (!base.IsDisposed)
         {
             string str = target.comm.sourceDeviceName + ": Elevation Mask";
             frmMaskElevation elevation = new frmMaskElevation(target.comm);
             elevation.Text = str;
             elevation.ShowDialog();
         }
         else
         {
             MessageBox.Show("Port not initialized!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         }
     }
 }
Пример #2
0
 private void CreateElevationMaskWin()
 {
     if (PortManagerHash.Count > 0)
     {
         PortManager manager = null;
         bool flag = false;
         foreach (string str in PortManagerHash.Keys)
         {
             manager = (PortManager) PortManagerHash[str];
             if ((manager != null) && manager.comm.IsSourceDeviceOpen())
             {
                 flag = true;
                 break;
             }
         }
         if (flag && (manager != null))
         {
             string str2 = "Elevation Mask: All";
             frmMaskElevation elevation = new frmMaskElevation(manager.comm);
             elevation.Text = str2;
             elevation.ShowDialog();
         }
     }
 }