Exemple #1
0
        public VisualInstructionUserControl InsertInstruction(bool after, LocalToInsertInstruction localToInsertInstruction, VisualInstructionUserControl visualInstruction, params OperationCode[] opCodes)
        {
            InstructionList instructions = new InstructionList();

            instructions.InsertAllWithClearBefore(opCodes);

            switch (localToInsertInstruction)
            {
            case LocalToInsertInstruction.Undefined:
                visualInstruction = InsertInstructionAtLocalToBeDefined(after, visualInstruction, instructions);
                break;

            case LocalToInsertInstruction.ConditionsAtLeft:
                visualInstruction = InsertConditionInstructionAtLeft(after, visualInstruction, instructions);
                break;

            case LocalToInsertInstruction.OutputsAtRight:
                visualInstruction = InsertOutputInstructionAtRight(after, visualInstruction, instructions);
                break;
            }
            return(visualInstruction);
        }
Exemple #2
0
 public VisualInstructionUserControl InsertInstruction(LocalToInsertInstruction localToInsertInstruction, VisualInstructionUserControl visualInstruction, params OperationCode[] opCodes)
 {
     return(InsertInstruction(true, localToInsertInstruction, visualInstruction, opCodes));
 }