Пример #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__stored_command"></param>
 public override void store(Command __stored_command)
 {
     if ( __stored_command != this ) {
         this.commands_.Enqueue( __stored_command );
     }
 }
Пример #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__stored_commands"></param>
 public override void storeAll(Command[] __stored_commands)
 {
     foreach ( Command command in __stored_commands ) {
         store( command );
     }
 }
Пример #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__command"></param>
 public MacroQueueCommand(Command __command)
 {
     this.commands_ = new Queue<Command>();
     store( __command );
 }
Пример #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__commands"></param>
 public MacroQueueCommand(Command[] __commands)
 {
     this.commands_ = new Queue<Command>();
     storeAll( __commands );
 }
Пример #5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__commands"></param>
 public Executor(Command[] __commands)
 {
     initialize( new MacroQueueCommand( __commands ) );
 }
Пример #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__command"></param>
 public Executor(Command __command)
 {
     initialize( __command );
 }
Пример #7
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__command"></param>
 private void initialize(Command __command)
 {
     this.command_ = __command;
 }
Пример #8
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__commands"></param>
 public MacroStackCommand(Command[] __commands)
 {
     this.commands_ = new Stack<Command>();
     storeAll( __commands );
 }
Пример #9
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="__command"></param>
 public MacroStackCommand(Command __command)
 {
     this.commands_ = new Stack<Command>();
     store( __command );
 }