Example #1
0
 /// <summary>
 /// Executes a command
 /// </summary>
 /// <param name="command">The command</param>
 void Execute(string command)
 {
     foreach (object o in children)
     {
         if (o is IAssociatedObject)
         {
             IAssociatedObject ao      = o as IAssociatedObject;
             IExecuteCommand   execute = ao.Find <IExecuteCommand>();
             if (execute != null)
             {
                 execute.Execute(command);
             }
         }
     }
 }
Example #2
0
 public void Press()
 {
     _command.Execute();
 }
Example #3
0
 private void OnAdd(IExecuteCommand command)
 {
     command.Execute(_context);
 }