public override void loadData() { if (base.SelectedItemData == null) { return; } if (string.IsNullOrEmpty(base.SelectedItemData.Code)) { return; } string itemCode = base.SelectedItemData.Code; var candles = PPContext.Instance.ClientContext.GetCandleSourceDataOrderByAsc( itemCode , base.timeInterval); if (candles == null || candles.Count == 0) { return; } List <S_LineItemData> sourceDatas = new List <S_LineItemData>(); var list = PPUtils.GetSixPointsByCandles(candles); foreach (var m in list) { //S_LineItemData sourceData = new S_LineItemData( // itemCode // , m.OpenPrice // , m.HighPrice // , m.LowPrice // , m.ClosePrice // , m.DTime // ); //sourceDatas.Add(sourceData); } chart.loadDataAndApply(itemCode, sourceDatas, base.timeInterval, 7); var averageDatas = PPUtils.GetAverageDatas(itemCode, sourceDatas, 7); chart2.loadDataAndApply(itemCode, averageDatas, base.timeInterval, 7); }