コード例 #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);
             }
         }
     }
 }
コード例 #2
0
 public void Press()
 {
     _command.Execute();
 }
コード例 #3
0
 private void OnAdd(IExecuteCommand command)
 {
     command.Execute(_context);
 }