示例#1
0
        public override bool UnRun(CommandManager mgr)
        {
            foreach (var de in m_de)
            {
                di = CommandGroupOperate.Group(mgr.CurrentCanvas, de);
                if (di == null)
                {
                    return(false);
                }
            }

            return(true);
        }
示例#2
0
        public override Boolean Run(CommandManager mgr, params object[] param)
        {
            var items             = param[0] as IEnumerable <DesignerContainer>;
            var DesignerContainer = CommandGroupOperate.Group(mgr.CurrentCanvas, items);

            if (DesignerContainer != null)
            {
                di = new List <DesignerContainer>();
                di.Add(DesignerContainer);
                return(true);
            }

            return(false);
            //return RunCmd(mgr, param[0] as IEnumerable<DesignerContainer>);
        }
示例#3
0
        public override bool ReRun(CommandManager mgr)
        {
            di.Clear();
            foreach (var dei in de)
            {
                var re = CommandGroupOperate.Group(mgr.CurrentCanvas, dei);
                if (re == null)
                {
                    return(false);
                }

                di.Add(re);
            }


            return(true);
        }