添加关机退出按钮
This commit is contained in:
commit
8db7de1d3c
4 files changed
+35
-14
No files matched your search
@@ -725,11 +725,11 @@ namespace DyeingComputer.ViewModel
|
||||
hardwareItem.Update(); // 更新硬件信息:cite[2]
|
||||
foreach (var sensor in hardwareItem.Sensors)
|
||||
{
|
||||
if (sensor.SensorType == SensorType.Temperature && sensor.Value.HasValue)
|
||||
// if (sensor.SensorType == SensorType.Temperature && sensor.Value.HasValue)
|
||||
{
|
||||
//Console.WriteLine($"{hardwareItem.Name} - {sensor.Name}: {sensor.Value.Value}°C");
|
||||
// 实际应用中,你可能需要将这里的数据绑定到UI控件或存储起来
|
||||
Hardware.Add(sensor.Name, sensor.Value.Value);
|
||||
Hardware.Add(sensor.Name+":"+sensor.SensorType, sensor.Value.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -752,7 +752,7 @@ namespace DyeingComputer.ViewModel
|
||||
|
||||
if (timer1s_ >= 2) { timer1s_ =0; Tick_Event_1S(); }
|
||||
if (timer5s_ >=10) { timer5s_ = 0; Tick_Event_5S(); }
|
||||
if (timer60s_ >= 20) { timer60s_ = 0; Tick_Event_60S(); }
|
||||
if (timer60s_ >= 120) { timer60s_ = 0; Tick_Event_60S(); }
|
||||
if (LINK_OK) IO_data();
|
||||
}
|
||||
void Chart()
|
||||
|
||||
Reference in new issue
Block a user