public wDBRowCollection GetRows() { dbc.ReturnToRoot(); string[] rowNums = dbc.ListDatabases(); List <wDBTableRow> rows = new List <wDBTableRow>(); for (int i = 0; i < rowNums.Length; i++) { string rowNum = rowNums[i]; dbc.SelectDB(rowNum); rows.Add( new wDBTableRow(dbc) ); dbc.ReturnToRoot(); } return(new wDBRowCollection(rows)); }
public wDBTable(string name, DatabaseClient root) { rootLocation = root.currentFolderLocation; dbc = root.Clone(); dbc.SelectDB("$" + name); dbc.SetCurrentDBAsRoot(); dbc.ReturnToRoot(); }