Beispiel #1
0
 //Function that checks the device for an internet Connection.
 private void checkInternet()
 {
     if (MonitorManager.internetAccess() == true)
     {
         lblInternet.Text      = "OK";
         lblInternet.ForeColor = System.Drawing.Color.Green;
     }
     else
     {
         lblInternet.Text      = "FALLO";
         lblInternet.ForeColor = System.Drawing.Color.Red;
     }
 }
Beispiel #2
0
 //function that checks GPS availability
 private void checkGPS()
 {
     if (MonitorManager.gps() == true)
     {
         lblGPS.Text      = "OK";
         lblGPS.ForeColor = System.Drawing.Color.Green;
     }
     else
     {
         lblGPS.Text      = "Error en el GPS";
         lblGPS.ForeColor = System.Drawing.Color.Red;
     }
 }
Beispiel #3
0
 //Function that checks DataBase connectivity
 private void checkDB()
 {
     if (MonitorManager.checkDB() == true)
     {
         lblDB.Text      = "OK";
         lblDB.ForeColor = System.Drawing.Color.Green;
     }
     else
     {
         lblDB.Text      = "No hay conexion con la base de datos";
         lblDB.ForeColor = System.Drawing.Color.Red;
     }
 }