예제 #1
0
        public ChartPanel(ChartOptions options)
        {
            this.SeriesType = options.SeriesType;
            this.IndicatorType = options.IndicatorType;
            this.ChartDrawing = ChartDrawingHelper.GetChartDrawing(SeriesType, IndicatorType);
            this.ChartData = options.ChartData;
            this.ChartStyle = options.ChartStyle;

            if (this.ChartStyle == null)
                this.ChartStyle = new DefaultChartStyle();

            SizeChanged += ChartPanel_SizeChanged;
        }
예제 #2
0
        public ChartPanel(ChartOptions options)
        {
            this.SeriesType    = options.SeriesType;
            this.IndicatorType = options.IndicatorType;
            this.ChartDrawing  = ChartDrawingHelper.GetChartDrawing(SeriesType, IndicatorType);
            this.ChartData     = options.ChartData;
            this.ChartStyle    = options.ChartStyle;

            if (this.ChartStyle == null)
            {
                this.ChartStyle = new DefaultChartStyle();
            }

            SizeChanged += ChartPanel_SizeChanged;
        }