public ChartControl() { // The ChartControl draws the chart in the OnPaint override. SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.BackColor = System.Drawing.Color.White; this.Name = "ChartControl"; this.Click += new System.EventHandler(this.ChartControl_Click); this.QueryAccessibilityHelp += new System.Windows.Forms.QueryAccessibilityHelpEventHandler( this.ChartControl_QueryAccessibilityHelp); // The CurveLengend is not Control-based, it just // represents the parts of the legend. legend1 = new CurveLegend(this, "A"); legend1.Location = new Point(20, 30); legend2 = new CurveLegend(this, "B"); legend2.Location = new Point(20, 50); }
public CurveLegendAccessibleObject(CurveLegend curveLegend) : base() { this.curveLegend = curveLegend; }