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(); }
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; }