public void loadMarketDataSymbolFromDB() { this.symbolDAOList_.Clear(); MARKETDATA_SYMBOL_INFO_Table_DAOManager daoM = new MARKETDATA_SYMBOL_INFO_Table_DAOManager(); daoM.selectAll(DataBaseConnectManager.ConnectionFactory("myDB")); foreach (var item in daoM.DAOList_) { this.symbolDAOList_.Add(item); } }
public void loadMarketDataSymbolFromDB() { this.symbolDAOList_.Clear(); MARKETDATA_SYMBOL_INFO_Table_DAOManager daoM = new MARKETDATA_SYMBOL_INFO_Table_DAOManager(); daoM.selectAll(DataBaseConnectManager.ConnectionFactory("myDB")); foreach (var item in daoM.DAOList_) { this.symbolDAOList_.Add(item); } }
public static List <Excel_marketDataSymbol> getDefinedSymbolALL() { List <Excel_marketDataSymbol> symbols = new List <Excel_marketDataSymbol>(); MARKETDATA_SYMBOL_INFO_Table_DAOManager daoM = new MARKETDATA_SYMBOL_INFO_Table_DAOManager(); daoM.selectAll(DataBaseConnectManager.ConnectionFactory("myDB")); foreach (var item in daoM.DAOList_) { string underType = item.SYMBOL_TYPE_; //Excel_marketDataSymbol e_mds = Excel_loaderViewModel.CreateSymbolViewModel(underType); Excel_marketDataSymbol e_mds = new Excel_marketDataSymbol(); e_mds.setFromDAO(item); symbols.Add(e_mds); } return(symbols); }
public static List<Excel_marketDataSymbol> getDefinedSymbolALL() { List<Excel_marketDataSymbol> symbols = new List<Excel_marketDataSymbol>(); MARKETDATA_SYMBOL_INFO_Table_DAOManager daoM = new MARKETDATA_SYMBOL_INFO_Table_DAOManager(); daoM.selectAll(DataBaseConnectManager.ConnectionFactory("myDB")); foreach (var item in daoM.DAOList_) { string underType = item.SYMBOL_TYPE_; //Excel_marketDataSymbol e_mds = Excel_loaderViewModel.CreateSymbolViewModel(underType); Excel_marketDataSymbol e_mds = new Excel_marketDataSymbol(); e_mds.setFromDAO(item); symbols.Add(e_mds); } return symbols; }