Exemple #1
0
        public void control_AddIndicatorEvent(BasicIndicator indicator, ChartPane pane)
        {
            IndicatorChartSeries series = new IndicatorChartSeries(indicator.Name, indicator);

            if (pane == null)
            {
                pane = chartControl.CreateSlavePane(indicator.Name, SubChartPane.MainChartPaneSyncModeEnum.XAxis, this.Height / 4);
                pane.RightMouseButtonSelectionMode = ChartPane.SelectionModeEnum.HorizontalZoom;
                pane.Add(series);
            }
            else
            {
                pane.Add(series);
            }
        }
        public void control_AddIndicatorEvent(BasicIndicator indicator, ChartPane pane)
        {
            IndicatorChartSeries series = new IndicatorChartSeries(indicator.Name, indicator);

            if (pane == null)
            {
                pane = chartControl.CreateSlavePane(indicator.Name, SubChartPane.MainChartPaneSyncModeEnum.XAxis, this.Height / 4);
                pane.RightMouseButtonSelectionMode = ChartPane.SelectionModeEnum.HorizontalZoom;
                pane.Add(series);
            }
            else
            {
                pane.Add(series);
            }
        }