public override void DrawRect(System.Drawing.RectangleF dirtyRect) { var g = new Graphics(); g.Clear(backColor); cs.ChartArea = this.ClientRectangle; AddData(); SetPlotArea(g); cs.AddChartStyle(g); dc.AddLines(g, cs); g.Dispose(); }
public override void DrawRect(CGRect dirtyRect) { var g = Graphics.FromCurrentContext(); g.Clear(backColor); cs.ChartArea = this.ClientRectangle; AddData(); SetPlotArea(g); cs.AddChartStyle(g); dc.AddLines(g, cs); g.Dispose(); }