private static bool CanPaste(ICommandTarget target) { IPoderosaView view = CommandTargetUtil.AsViewOrLastActivatedView(target); IPoderosaCommand cmd = GetPasteCommand(view); return(cmd == null ? false : cmd.CanExecute(view)); }
private static CommandResult CmdPaste(ICommandTarget target) { IPoderosaView view = CommandTargetUtil.AsViewOrLastActivatedView(target); IPoderosaCommand cmd = GetPasteCommand(view); return(cmd == null ? CommandResult.Ignored : cmd.InternalExecute(view)); }