public bool openSql(ref DataSet ds, string sqlstr) { if (DataSourceType == DataSourceType_MySql) { MySqlManager msm = new MySqlManager(); return(msm.openSql(ref ds, sqlstr)); } else if (DataSourceType == DataSourceType_Oracle) { OracleManager om = new OracleManager(); return(om.openSql(ref ds, sqlstr)); } else { return(false); } }