Exemple #1
0
        public void Run()
        {
            FormMain f1 = (FormMain)this.Owner;

            for (; ;)
            {
                DrawingCurve bmp = new DrawingCurve();  //画曲线图

                //Random r = new Random();
                for (int j = 0; j < 11; j++)
                {
                    FormDisplay.fltCurrentValues[j] = FormDisplay.fltCurrentValues[j + 1];
                }
                if (f1.rtbReceive.Text.Trim() != "")
                {
                    FormDisplay.fltCurrentValues[11] = Convert.ToSingle(f1.rtbReceive.Text.Trim());// (float)r.Next(100);
                }
                pictureBox1.Image = bmp.DrawImage();
                Thread.Sleep(trackBar1.Value);
            }
        }