private void btnTestCon_Click(object sender, EventArgs e) { if (DBManager.testConn() == true) { MessageBox.Show("Base de datos Conectada"); } else { MessageBox.Show("Base de datos NO Conectada"); } }
//Function that returns the value for the database functionality public static bool checkDB() { bool valor = DBManager.testConn(); return(valor); }