60 lines
1.4 KiB
C#
60 lines
1.4 KiB
C#
using Stylet;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MainShell.Recipe.Models
|
|
{
|
|
public class RecipeWrap : PropertyChangedBase
|
|
{
|
|
private string _recipeName;
|
|
|
|
public string RecipeName
|
|
{
|
|
get { return _recipeName; }
|
|
set { SetAndNotify(ref _recipeName, value); }
|
|
}
|
|
private DateTime _createTime;
|
|
|
|
public DateTime CreateTime
|
|
{
|
|
get { return _createTime; }
|
|
set { SetAndNotify(ref _createTime, value); }
|
|
}
|
|
private DateTime _modifiedTime;
|
|
|
|
public DateTime ModifiedTime
|
|
{
|
|
get { return _modifiedTime; }
|
|
set { SetAndNotify(ref _modifiedTime, value); }
|
|
}
|
|
|
|
private bool _isInUse;
|
|
|
|
public bool IsInUse
|
|
{
|
|
get { return _isInUse; }
|
|
set { SetAndNotify(ref _isInUse, value); }
|
|
}
|
|
private bool _hasError;
|
|
|
|
public bool HasError
|
|
{
|
|
get { return _hasError; }
|
|
set { SetAndNotify(ref _hasError, value); }
|
|
}
|
|
private bool _needUpdate;
|
|
/// <summary>
|
|
/// 重命名&删除时
|
|
/// </summary>
|
|
public bool NeedUpdate
|
|
{
|
|
get { return _needUpdate; }
|
|
set { SetAndNotify(ref _needUpdate, value); }
|
|
}
|
|
|
|
}
|
|
}
|