public void Add(StockData data) { StockMongoDB.GetInstance().AddStockData(data); }
/// <summary> /// Get stock's information by stock id /// </summary> /// <param name="id">Stock ID, eg. 600012</param> /// <returns>stock's information</returns> public IEnumerable <StockData> GetStockData(int id) { return(StockMongoDB.GetInstance().GetStock(id)); }
public void BeforeAdd() { StockMongoDB.GetInstance().InitFindHelper(); }
public void Load() { stockIDs_.Clear(); stockIDs_.AddRange(StockMongoDB.GetInstance().GetAllStockIDs()); }