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); }
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>); }
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); }