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; }
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; }