예제 #1
0
        private void OnChartPanelSubscribeCandleElement(ChartCandleElement element, CandleSeries candleSeries)
        {
            _drawTimer.Cancel();

            _elements.Add(new RefPair <IChartElement, int>(element, 0));
            _drawTimer.Activate();
        }
예제 #2
0
        private void StopSeries()
        {
            var element = _bufferedChart.Elements.OfType <ChartCandleElement>().FirstOrDefault();

            if (element != null)
            {
                var series = (CandleSeries)_bufferedChart.GetSource(element);
                _candleManager.Stop(series);
            }

            _timer.Cancel();
        }