示例#1
0
 public void GraphRender()
 {
     if (Xs.Length < 2 || Ys.Length < 2)
     {
         return;
     }
     SP.Clear();
     SP.Grid();
     SP.PlotLine(Xs, Ys);
     pictureBox1.BackgroundImage = SP.Render();
     this.Refresh();
 }
示例#2
0
 public void UpdateGraph()
 {
     thinking = true;
     stopwatch.Restart();
     SP.Resize(pictureBox1.Width, pictureBox1.Height);
     SP.Clear();
     SP.Grid();
     SP.PlotLine(Xs, Ys);
     pictureBox1.BackgroundImage = SP.Render();
     this.Refresh();
     Application.DoEvents();
     stopwatch.Stop();
     MessageUpdate();
     thinking = false;
 }