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); }
public VisualInstructionUserControl InsertInstruction(LocalToInsertInstruction localToInsertInstruction, VisualInstructionUserControl visualInstruction, params OperationCode[] opCodes) { return(InsertInstruction(true, localToInsertInstruction, visualInstruction, opCodes)); }