Ejemplo n.º 1
0
 private void sbasConfigureClickHandler(ref CommunicationManager comm)
 {
     if (comm != null)
     {
         if (!base.IsDisposed)
         {
             string str = comm.sourceDeviceName + ": DGPS Settings";
             frmDGPS mdgps = new frmDGPS(comm);
             mdgps.Text = str;
             mdgps.ShowDialog();
         }
         else
         {
             MessageBox.Show("Port not initialized!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         }
     }
 }
Ejemplo n.º 2
0
 private void sbasConfigureClickHandler()
 {
     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)) && manager.comm.IsSourceDeviceOpen())
         {
             string str2 = "DGPS Settings: All";
             frmDGPS mdgps = new frmDGPS(manager.comm);
             mdgps.Text = str2;
             mdgps.ShowDialog();
         }
     }
 }