How can I control the command that I am building to the visibility of the panel?
I mean :
while (command is running) → no other commands can run, and then the panel pops up (panel dialog type is Form), if the user closes the panel, the command stops.