public InteractProcessBuilder WithStep(string Prompt, object StepUserObject = null, InteractProcess.ProcessStepCallback Callback = null) { InteractProcess.ProcessStep Step = new InteractProcess.ProcessStep(); Step.Description = Prompt; if (Callback != null) { Step.Callback = Callback; } else if (DefaultCallback != null) { Step.Callback = DefaultCallback; } Step.UserObject = StepUserObject; Process.ProcessSteps.Enqueue(Step); return(this); }
public InteractProcessBuilder WithDefaultStepCallback(InteractProcess.ProcessStepCallback Callback) { DefaultCallback = Callback; return(this); }