Beispiel #1
0
 public SensorPage()
 {
     InitializeComponent();
     sensorLoop = false;
     //VALIDANDO LOS SENSORES QUE APARECEN EN PANTALLA
     foreach (int id in sensor_valid)
     {
         string name = Readings.returnSensorNAME(id);
         if (name == "SPEED")
         {
             SPEED.IsVisible = true;
         }
         else if (name == "TEMPERATURE")
         {
             TEMPERATURE.IsVisible = true;
         }
         else if (name == "WEIGHT")
         {
             WEIGHT.IsVisible = true;
         }
         else if (name == "HEART")
         {
             HEART.IsVisible = true;
         }
         else if (name == "PROXIMITY")
         {
             PROXIMITY.IsVisible = true;
         }
         else if (name == "BATTERY")
         {
             BATTERY.IsVisible = true;
         }
     }
 }