public IScriptCommand BuildCommand(ScriptStatement statement) { var command = Create(statement.Name); command.Param1 = statement.Param1; command.Param2 = statement.Param2; command.Status = ExecutionStatus.Unknown; return(command); }
public void Insert(int index, ScriptStatement statement) { if (index >= Statements.Count) { Statements.Add(statement); } else { Statements.Insert(index, statement); } }
public void Add(ScriptStatement statement) { Current ??= new Script(); Current.Statements.Add(statement); }