public void Finish() { this.state = MapStepState.Done; this.lastStateTime = DateTime.Now; if (this.result == MapStepResult.Undefined) { this.result = MapStepResult.Ok; } }
public MapItem(string oper, LineStation lineStation, string lineStationKey, int stepNum) { this.lineStation = lineStation; this.Operation = oper; this.LineStationKey = lineStationKey; this.StepNum = stepNum; this.state = MapStepState.New; this.result = MapStepResult.Undefined; this.lastStateTime = new DateTime(2000, 1, 1, 0, 0, 0); }
public void Start() { this.state = MapStepState.InProgress; this.lastStateTime = DateTime.Now; }