コード例 #1
0
 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");
     }
 }
コード例 #2
0
        //Function that returns the value for the database functionality
        public static bool checkDB()
        {
            bool valor = DBManager.testConn();

            return(valor);
        }