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

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

@@ -55,4 +55,16 @@ public interface IEventService
void RaiseMqttConnectionChanged(object sender, MqttConnectionChangedEventArgs e);
#endregion
/// <summary>
/// 设备运行改变事件
/// </summary>
event EventHandler<DeviceConnectChangedEventArgs> OnDeviceConnectChanged;
/// <summary>
/// 触发设备状态改变事件
/// </summary>
/// <param name="sender">事件发送者</param>
/// <param name="e">设备状态改变事件参数</param>
void RaiseDeviceConnectChanged(object sender, DeviceConnectChangedEventArgs e);
}