private void paintChart(Graphics g) { g.Clear(Color.White); ChartPainter chartPainter = new ChartPainter(); chartPainter.PrintCoordinateSystem(g); chartPainter.PaintChart(func, g); g.Dispose(); }
protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); if (!this.DesignMode) { chart.GenerateChart(Scheduler.StartDate, Scheduler.EndDate); painter.PaintChart(e.Graphics, chart); } }