完成设备的启用和停用并更新界面
This commit is contained in:
@@ -22,6 +22,12 @@ public class EventService : IEventService
|
||||
/// 设备状态改变事件
|
||||
/// </summary>
|
||||
public event EventHandler<DeviceActiveChangedEventArgs> OnDeviceActiveChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 设备运行改变事件
|
||||
/// </summary>
|
||||
public event EventHandler<DeviceConnectChangedEventArgs> OnDeviceConnectChanged;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 触发设备状态改变事件
|
||||
@@ -40,6 +46,17 @@ public class EventService : IEventService
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 触发设备状态改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender">事件发送者</param>
|
||||
/// <param name="e">设备状态改变事件参数</param>
|
||||
public void RaiseDeviceConnectChanged(object sender, DeviceConnectChangedEventArgs e)
|
||||
{
|
||||
OnDeviceConnectChanged?.Invoke(sender, e);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 变量事件
|
||||
|
||||
Reference in New Issue
Block a user