private void Form_Device_Details_Load(object sender, EventArgs e)
{
Thread displayThread = new Thread(display);
displayThread.Start();
}
//关闭窗口时关闭线程
private void Form_Device_Details_FormClosed(object sender, FormClosedEventArgs e)
{
//线程和关闭窗口事件不在同一个方法,怎么关闭线程,把线程实例化放到外面实例化又会说“非静态的字段、方法或属性“SmartMachines.winform.Form_Device_Details.display()”要求对象引用”
}