Exemplo n.º 1
0
 public static SqlDbAccess GetInstance()
 {
     if (sqlDbAccess == null)
     {
         sqlDbAccess = new SqlDbAccess();
     }
     return sqlDbAccess;
 }
Exemplo n.º 2
0
 private void btnremotetestdb_Click(object sender, EventArgs e)
 {
     var connect = ConfigFileUtility.GenerateDB(txtremoteUserNamedb.Text, txtremotepwddb.Text, txtremoteaddressdb.Text, txtremoteDBNamedb.Text);
     var access = new SqlDbAccess();
     var result = access.TestConn(connect);
     ShowTestResult(result);
 }