예제 #1
0
        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);
        }
예제 #2
0
        public InteractProcessBuilder WithDefaultStepCallback(InteractProcess.ProcessStepCallback Callback)
        {
            DefaultCallback = Callback;

            return(this);
        }