Fix MAGN-851: Node to Code disabled in the UI

That's because the menu item is enabled or not is controlled by DelegateCommand.CanExecute(). For N2C menu item, it is enabled or not depends on if the selection set is empty or not. But its status should be updated whenever the selection set is changed.