public void Invoke(ObjectController newParent) { switch (ParentCommand) { case ParentCommand.SetThis: SetParentCommand command = new SetParentCommand(_selectedObjectController, newParent); ((ICommand)command).Execute(); ParentCommand = ParentCommand.None; break; } }
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; } }