Exemple #1
0
        public void UnExecute()
        {
            // select object that was unselected
            ICommand command = new SelectAdditionalObjectCommand(obj);

            command.Execute();
        }
Exemple #2
0
        public void Execute()
        {
            // unselect all currently selected items
            deselectAll.Execute();

            // select the new item
            ICommand select = new SelectAdditionalObjectCommand(obj);

            select.Execute();
        }
Exemple #3
0
        public void UnExecute()
        {
            // deselect the current item
            ICommand select = new SelectAdditionalObjectCommand(obj);

            select.UnExecute();

            // undo deselect
            deselectAll.UnExecute();
        }
        public void Execute()
        {
            if(group == null)
                throw new Exception ("No selected objects");

            if(!(group is GroupObject))
            {
                throw new Exception ("No group objects selected");
            }

            ArrayList objects = SceneManager.Instance.UnGroup(group);

            Midget.Events.EventFactory.Instance.GenerateUngroupEvent(this,group);

            ICommand deselectAll = new DeselectAllObjectsCommand(SceneManager.Instance.SelectedObjects);
            deselectAll.Execute();

            // select all the objects
            foreach(IObject3D obj in objects)
            {
                ICommand select = new SelectAdditionalObjectCommand(obj);
                select.Execute();
            }

            ArrayList list = new ArrayList();
            list.Add(group);

            ICommand delete = new Midget.Command.Object.Lifetime.DeleteCommand(list);
            delete.Execute();
        }
Exemple #5
0
 public void UnExecute()
 {
     // select object that was unselected
     ICommand command = new SelectAdditionalObjectCommand(obj);
     command.Execute();
 }
Exemple #6
0
        public void UnExecute()
        {
            // deselect the current item
            ICommand select = new SelectAdditionalObjectCommand(obj);
            select.UnExecute();

            // undo deselect
            deselectAll.UnExecute();
        }
Exemple #7
0
        public void Execute()
        {
            // unselect all currently selected items
            deselectAll.Execute();

            // select the new item
            ICommand select = new SelectAdditionalObjectCommand(obj);
            select.Execute();
        }