In Dorico what you do is:
- Give the player both instruments, and
- in galley view, write the music for each instrument on the appropriate staff
Result: In page view Dorico automatically shows only the instrument with music, and notices for when to switch instruments. See the manual for details.