//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; } }
//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; } }
//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; } }