Exemplo n.º 1
0
 public void Draw(int time, double force)
 {
     if (this.chart1.InvokeRequired)
     {
         LetResultOut deleg = new LetResultOut(Draw);
         this.Invoke(deleg, new object[] { time, force });
     }
     else
     {
         chart1.Series["force–time"].Points.AddXY(time, force);
     }
 }
Exemplo n.º 2
0
 public void DrawDeflection(int time, double deflection)
 {
     if (this.chart1.InvokeRequired)
     {
         LetResultOut deleg = new LetResultOut(DrawDeflection);
         this.Invoke(deleg, new object[] { time, deflection });
     }
     else
     {
         chart1.Series["deflection-time"].Points.AddXY(time, deflection);
         //dataGridView1.Rows.Add(time.ToString(), force.ToString(), "");
     }
 }