public bool Run() { State = StepViewState.InProgress; bool res = myFunc(); if (res) { State = StepViewState.OK; } else { State = StepViewState.Error; } return res; }
public void Reset() { State = StepViewState.Hidden; }