Files
MoviconHub/MoviconHub.App/Models/ClearAction.cs
2025-09-15 17:59:48 +08:00

68 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MoviconHub.App.Models
{
/// <summary>
/// 清洗动作
/// </summary>
public class ClearAction
{
/// <summary>
/// 清洗事件
/// </summary>
public event EventHandler<string> ClearActionEvent;
private bool _ClearEnd;
/// <summary>
/// 清洗完成信号
/// </summary>
public bool ClearEnd
{
get { return _ClearEnd; }
set
{
if (_ClearEnd != value)
{
_ClearEnd = value;
//清洗完成
if (_ClearEnd)
{
ClearActionEvent.BeginInvoke(this, "清洗完成", null, null);
}
}
}
}
private bool _DeviceClose;
/// <summary>
/// 设备关机信号
/// </summary>
public bool DeviceClose
{
get { return _DeviceClose; }
set
{
if (_DeviceClose != value)
{
_DeviceClose = value;
//清洗完成
if (_DeviceClose)
{
ClearActionEvent.BeginInvoke(this, "设备关机", null, null);
}
}
}
}
}
}