目录
一 设计原型
二 后台源码
一 设计原型
二 后台源码
namespace 动态流体工厂大屏
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Task.Run(() =>
{
while (true)
{
this.Invoke(() =>
{
uiAnalogMeter1.Value = new Random().Next(1, 100);
uiDigitalLabel1.Value = new Random().Next(1, 100);
uiDoubleUpDown1.Value = new Random().Next(1, 100);
uiDataGridView1.Rows.Add("A", "B", DateTime.Now.ToString(), "OK", "测试数据");
});
Thread.Sleep(2000);
}
});
}
}
}