Ejemplo n.º 1
0
        public override bool Execute()
        {
            var copyCommand = new CopyCommand(ChartObjects, true);

            copyCommand.Execute();

            DeleteCommand = new DeleteCommand(ChartObjects);
            DeleteCommand.Execute();

            return(true);
        }
Ejemplo n.º 2
0
        private void Delete(ChartObject[] mapObjects)
        {
            if (mapObjects != null && mapObjects.Length > 0)
            {
                foreach (ChartObject mapObject in mapObjects)
                {
                    if (mapObject is Topic && ((Topic)mapObject).IsRoot)
                    {
                        return;
                    }
                }

                DeleteCommand command = new DeleteCommand(mapObjects);
                ExecuteCommand(command);
            }
        }