Exemple #1
0
 private void CreateStaticNavWin(ref PortManager target)
 {
     if (target != null)
     {
         if (!base.IsDisposed)
         {
             string str = target.comm.sourceDeviceName + ": Static Nav";
             frmStaticNav nav = new frmStaticNav(target.comm);
             nav.Text = str;
             nav.ShowDialog();
         }
         else
         {
             MessageBox.Show("Port not initialized!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         }
     }
 }
Exemple #2
0
 private void CreateStaticNavWin()
 {
     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 = "Static Nav: All";
             frmStaticNav nav = new frmStaticNav(manager.comm);
             nav.Text = str2;
             nav.ShowDialog();
         }
     }
 }