using Community; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { /// /// 流程模型 /// public class FlowModel : NotificationObject { private string myName; /// /// 流程名称 /// public string MyName { get { return myName; } set { myName = value; RaisePropertyChanged("MyName"); } } /// /// 流程步骤 /// public GengralProcessEnum RunStep { get; set; } /// /// 时间 /// public DateTime RunTime { get; set; } private ShowInfo runState; /// /// 状态 /// public ShowInfo RunState { get { return runState; } set { runState = value; RaisePropertyChanged("RunState"); } } private int step; public int Step { get { return step; } set { step = value; RunTime = DateTime.Now; } } public FlowModel(string name = "") { MyName = name; RunStep = GengralProcessEnum.Start; Step = 0; RunState = new ShowInfo() { StatuInfo = "待运行", StatusBackground = ColorStr.Gray, StatusForeground = ColorStr.White }; RunTime = DateTime.Now; } public void Reset() { RunStep = GengralProcessEnum.Start; RunState = new ShowInfo() { StatuInfo = "待运行", StatusBackground = ColorStr.Gray, StatusForeground = ColorStr.White }; } } }