/// <summary> /// 執行下載股價資訊執行緒 /// </summary> /// <param name="obj"></param> private void threadDownloadStockPrice_Start(object obj) { if (obj is MyStockAnalyzer.Classes.StockData) { MyStockAnalyzer.Classes.StockData stock = obj as MyStockAnalyzer.Classes.StockData; List <MyStockAnalyzer.Classes.StockPrice> singleStockPrices = stockHelper.GetStockPriceDataList(stock, dtStockBgn.Value.Date, dtStockEnd.Value.Date); lock (this) { waitedUpdateSotckPrice.AddRange(singleStockPrices); } } }