public bool IsReady() { bool isReady; if (this.OpenConnection()) { isReady = true; } else { ConnectionConfiguration.LoadDefaultConnection(this); isReady = this.OpenConnection(); } this.CloseConnection(); return(isReady); }