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

            return(cmd == null ? false : cmd.CanExecute(view));
        }
Example #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));
        }