public static List <DfsSet> GetDfsSets() { List <DfsSet> list = new List <DfsSet>(); foreach (DataRow row in ((DfsSetCache) new DfsSetCache().GetData()).dtDfsSet.Rows) { DfsSet dfsSet = new DfsSet(); DfsSet @object = DfsSetUtils.GetObject(row); list.Add(@object); } return(list); }
public static DfsSet GetDfsSet(string fsId) { DfsSet dfsSet = null; DfsSetCache dfsSetCache = (DfsSetCache) new DfsSetCache().GetData(); int index = dfsSetCache.dvDfsSetBy_FsId.Find(fsId); bool flag = index >= 0; if (flag) { DfsSet dfsSet2 = new DfsSet(); dfsSet = DfsSetUtils.GetObject(dfsSetCache.dvDfsSetBy_FsId[index].Row); } return(dfsSet); }