I’ve got a docked panel with a command button on it. I would the click even to run the same code as a rhinocommon command I created. What is the best practice, do I have two separate copies of the code to execute (one in the rhinocommon command and one in the button click event), or do I run the command from the button so there is only one copy? If the latter, how do I do this?