Beispiel #1
0
 public void CheckConnection()
 {
     if (m_obdInterface.ConnectedStatus)
     {
         groupDisplay.Enabled    = true;
         groupSelections.Enabled = true;
         groupLogging.Enabled    = true;
         if (IsLogging)
         {
             btnStart.Enabled = false;
             btnStart.Text    = "R&esume";
             btnReset.Enabled = true;
             btnSave.Enabled  = true;
         }
         else
         {
             btnStart.Enabled    = true;
             btnStart.Text       = "S&tart";
             listSensors.Enabled = true;
             btnReset.Enabled    = false;
             btnSave.Enabled     = false;
         }
         listSensors.Items.Clear();
         foreach (OBDParameter obdParameter in m_obdInterface.SupportedParameterList(1))
         {
             listSensors.Items.Add(obdParameter);
         }
     }
     else
     {
         listSensors.Items.Clear();
         groupDisplay.Enabled    = false;
         groupSelections.Enabled = false;
         groupLogging.Enabled    = false;
     }
 }