Ejemplo n.º 1
0
        public IScriptCommand BuildCommand(ScriptStatement statement)
        {
            var command = Create(statement.Name);

            command.Param1 = statement.Param1;
            command.Param2 = statement.Param2;
            command.Status = ExecutionStatus.Unknown;
            return(command);
        }
Ejemplo n.º 2
0
 public void Insert(int index, ScriptStatement statement)
 {
     if (index >= Statements.Count)
     {
         Statements.Add(statement);
     }
     else
     {
         Statements.Insert(index, statement);
     }
 }
Ejemplo n.º 3
0
 public void Add(ScriptStatement statement)
 {
     Current ??= new Script();
     Current.Statements.Add(statement);
 }