コード例 #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);
     }
 }