Exemple #1
0
 public void Invoke(ObjectController newParent)
 {
     switch (ParentCommand)
     {
     case ParentCommand.SetThis:
         SetParentCommand command = new SetParentCommand(_selectedObjectController, newParent);
         ((ICommand)command).Execute();
         ParentCommand = ParentCommand.None;
         break;
     }
 }
Exemple #2
0
        private void SetNewParentCommand(ParentCommand value)
        {
            _parentCommand = value;

            switch (ParentCommand)
            {
            case ParentCommand.DeleteParent:
                SetParentCommand command = new SetParentCommand(_selectedObjectController, null);
                ((ICommand)command).Execute();
                break;

            case ParentCommand.SetNew:

                break;
            }
        }