public static void Execute(IUserInterfaceCommand command)
        {
            command.Execute();

            var sourceFile = command as IXmlFileSource;

            if (sourceFile != null && sourceFile.CanLoad)
            {
                Controller.LoadAsync(sourceFile);
            }
        }
Ejemplo n.º 2
0
 public BaseCommandDecorator(IUserInterfaceCommand command)
 {
     _command = command;
 }
Ejemplo n.º 3
0
 public BaseCommandDecorator(IUserInterfaceCommand <object> command)
 {
     _commandReturningResult = command;
 }
Ejemplo n.º 4
0
 protected virtual async Task ExecuteCommand(IUserInterfaceCommand command)
 {
     await command.ExecuteAsync();
 }
 public EmptyLineCommandDecorator(IUserInterfaceCommand <object> command, bool insertLineBefore, bool insertLineAfter) : base(command)
 {
     _insertLineBefore = insertLineBefore;
     _insertLineAfter  = insertLineAfter;
 }