private void OnChartPanelSubscribeCandleElement(ChartCandleElement element, CandleSeries candleSeries) { _drawTimer.Cancel(); _elements.Add(new RefPair <IChartElement, int>(element, 0)); _drawTimer.Activate(); }
private void StopSeries() { var element = _bufferedChart.Elements.OfType <ChartCandleElement>().FirstOrDefault(); if (element != null) { var series = (CandleSeries)_bufferedChart.GetSource(element); _candleManager.Stop(series); } _timer.Cancel(); }