Esempio n. 1
0
 public void Add(StockData data)
 {
     StockMongoDB.GetInstance().AddStockData(data);
 }
Esempio n. 2
0
 /// <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));
 }
Esempio n. 3
0
 public void BeforeAdd()
 {
     StockMongoDB.GetInstance().InitFindHelper();
 }
Esempio n. 4
0
 public void Load()
 {
     stockIDs_.Clear();
     stockIDs_.AddRange(StockMongoDB.GetInstance().GetAllStockIDs());
 }