Beispiel #1
0
 /// <summary>
 /// 大单
 /// </summary>
 /// <param name="args"></param>
 private void StockAnalysisService_StockAnalysisResultUpdatedEvent(StockAnalysisResultUpdatedEventArgs <StockTransactionModel> args)
 {
     DispatcherHelper.RunAsync(new Action(() =>
     {
         args.AnalysisResults.ForEach(x =>
         {
             var model = CommonStockDataManager.Instance.GetStockDetailModel(x.Code);
             if (model != null)
             {
                 x.Name = model.Name;
             }
             var bks = CommonStockDataManager.Instance.GetStorageSectionsStr(x.Code);
             if (!string.IsNullOrEmpty(bks))
             {
                 x.Topic = bks;
             }
             //contentListBox.Items.Add($"[大单] - {x.ToString()}");
             var temp = new StockModel(x);
             StockModels.Insert(0, temp);
         });
     }));
 }
 private void AnalysisStrategy_AnalysisResultUpdatedEvent(StockAnalysisResultUpdatedEventArgs <TStockBase> args)
 {
     StockAnalysisResultUpdatedEvent?.Invoke(args);
 }