예제 #1
0
        private void paintChart(Graphics g)
        {
            g.Clear(Color.White);
            ChartPainter chartPainter = new ChartPainter();

            chartPainter.PrintCoordinateSystem(g);
            chartPainter.PaintChart(func, g);
            g.Dispose();
        }
예제 #2
0
 protected override void OnPaint(PaintEventArgs e)
 {
     base.OnPaint(e);
     if (!this.DesignMode)
     {
         chart.GenerateChart(Scheduler.StartDate, Scheduler.EndDate);
         painter.PaintChart(e.Graphics, chart);
     }
 }