public DBManager(string ip, string port, string username, string password) { _ipAddr = ip; _port = port; _username = username; _encryptPassword = SysUtil.EncryptDES(password, password); _connectString = GetDBConnectionString(); string connectState = TestConnect(); if (connectState == "Open") { isConnectable = true; _state = "Connectable"; _errorMsg = "0"; } else { isConnectable = false; _errorMsg = connectState; } }