251029
This commit is contained in:
40
FATrace.App/Model/DaySgl.cs
Normal file
40
FATrace.App/Model/DaySgl.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FATrace.App.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 日信号扫描
|
||||
/// </summary>
|
||||
public class DaySgl
|
||||
{
|
||||
public DaySgl()
|
||||
{
|
||||
_CurDay=DateTime.Now.ToString("yyyy-MM-dd");
|
||||
}
|
||||
|
||||
public event EventHandler<string> DaySglEvent;
|
||||
|
||||
private string _CurDay;
|
||||
/// <summary>
|
||||
/// 当前的工作日
|
||||
/// </summary>
|
||||
public string CurDay
|
||||
{
|
||||
get { return _CurDay; }
|
||||
set
|
||||
{
|
||||
if (_CurDay != value)
|
||||
{
|
||||
//触发当前的工作日信息
|
||||
DaySglEvent.Invoke(this, value);
|
||||
_CurDay = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user