Exemplo n.º 1
0
        private static bool CanPaste(ICommandTarget target)
        {
            IPoderosaView    view = CommandTargetUtil.AsViewOrLastActivatedView(target);
            IPoderosaCommand cmd  = GetPasteCommand(view);

            return(cmd == null ? false : cmd.CanExecute(view));
        }
Exemplo n.º 2
0
        private static CommandResult CmdPaste(ICommandTarget target)
        {
            IPoderosaView    view = CommandTargetUtil.AsViewOrLastActivatedView(target);
            IPoderosaCommand cmd  = GetPasteCommand(view);

            return(cmd == null ? CommandResult.Ignored : cmd.InternalExecute(view));
        }