添加项目文件。
This commit is contained in:
67
MoviconHub.App/Models/ClearAction.cs
Normal file
67
MoviconHub.App/Models/ClearAction.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user