using Community; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Documents; namespace Model { /// /// 流程模型 /// public class FlowModel : NotificationObject { public InputSignal InSignal { get; set; } public InputSignal OutSignal { get; set; } public OutputSignal OutCmd { get; set; } public bool EnPut { get; set; } 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"); } } public FlowModel(string name) { MyName = name; RunStep = GengralProcessEnum.Start; RunState = new ShowInfo() { StatuInfo = "待运行", StatusBackground = ColorStr.Gray, StatusForeground = ColorStr.White }; } public void Reset() { RunStep = GengralProcessEnum.Start; RunState = new ShowInfo() { StatuInfo = "待运行", StatusBackground = ColorStr.Gray, StatusForeground = ColorStr.White }; } } }