private void OnCandleStickPeriodChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!((BarCheckItem)e.Item).Checked) { return; } this.bsCandleStickPeriod.Caption = e.Item.Caption; if (Ticker.CandleStickPeriodMin == (int)e.Item.Tag) { return; } Ticker.CandleStickPeriodMin = (int)e.Item.Tag; Ticker.CandleStickData.Clear(); CandleStickChartHelper.CreateCandleStickData(Ticker); }
void CreateCandleStickDataSource() { Ticker.CandleStickData = CandleStickChartHelper.CreateCandleStickData(Ticker.History, Ticker.CandleStickPeriodMin * 60); }