コード例 #1
0
        public static IStep add_Message(this List <IStep> steps, string stepTitle, string message)
        {
            var newStep = Ex_Windows_Forms.createStepWith_TextBox(stepTitle, message);

            steps.Add(newStep);
            return(newStep);
        }
コード例 #2
0
        public static IStep add_Action(this List <IStep> steps, string stepTitle, Action <IStep> action)
        {
            var textBox = Ex_Windows_Forms.create_TextBox("");
            var newStep = Ex_Windows_Forms.createStepWith_TextBox(stepTitle, textBox);

            //newStep.NextHandler = ()=>  action(textBox);
            newStep.OnComponentAction = action;
            steps.Add(newStep);
            return(newStep);
        }
コード例 #3
0
        public static IStep add_Message(this List <IStep> steps, string stepTitle, Func <string> messageToAdd)
        {
            //var message = messageToAdd();
            var initialMessage = "initial message: ";
            var newStep        = Ex_Windows_Forms.createStepWith_TextBox(stepTitle, initialMessage);

            newStep.OnComponentAction =
                (step) =>
            {
                step.set_Text(messageToAdd());
            };
            steps.Add(newStep);
            return(newStep);
        }