完成设备的启用和停用并更新界面

This commit is contained in:
2025-09-12 17:22:15 +08:00
parent d20b35185f
commit c173ab08d3
8 changed files with 217 additions and 15 deletions

View File

@@ -78,6 +78,11 @@ public partial class DeviceItemViewModel : ObservableObject
}
}
partial void OnIsRunningChanged(bool oldValue, bool newValue)
{
System.Console.WriteLine($"IsRunning changed from {oldValue} to {newValue} for device {Name}");
}
/// <summary>
/// 当IsActive属性改变时调用用于发布设备状态改变事件
/// </summary>