/// <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); } } } }
public void Press() { _command.Execute(); }
private void OnAdd(IExecuteCommand command) { command.Execute(_context); }