Пример #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);
        }
Пример #2
0
 public void Insert(int index, ScriptStatement statement)
 {
     if (index >= Statements.Count)
     {
         Statements.Add(statement);
     }
     else
     {
         Statements.Insert(index, statement);
     }
 }
Пример #3
0
 public void Add(ScriptStatement statement)
 {
     Current ??= new Script();
     Current.Statements.Add(statement);
 }