private void UpdateCommand(CustomCommand command) { UnregisterCommand(command); RegisterCommand(command); }