public DataTable GetCoinsForGitHub(int intSmallSet) { Hashtable htParms = new Hashtable(); htParms.Add("@smallset", intSmallSet); DataTable dtCoinsForRoots = ConnMain.GetData("get_roots", htParms, false); //return ConnMain.GetDataSQL("select coinid, symbol, root, leadproj from devroot where err = 0", false); return(dtCoinsForRoots); }
public int GetRoots() { SqlClientBuilder sbMain = DBConn.GetConn(); Hashtable htParms = new Hashtable(); htParms.Add("@smallset", intSmallSet); DataTable dtCoinsForRoots = sbMain.GetData("get_coinlist_for_roots", htParms, false); if (sbMain.ErrNum > 0) { intErr = sbMain.ErrNum; strErr = sbMain.ErrMes; return(intErr); } CoinRoot cRoot = null; foreach (DataRow dr in dtCoinsForRoots.Rows) { cRoot = GetCoinGithubRoot(dr[0].ToString(), dr[1].ToString(), dr[2].ToString()); lstCoinRoots.Add(cRoot); Thread.Sleep(200); } return(intErr); }