We have a C# .NET WinForms user interface. The main form of the interface is the application menu with several buttons for the different processes of the application. One of the buttons starts the Pega automation for the application. In the button click event, the interface menu form is hidden before the Pega automation is started.
How do I get the Pega automation to return to the user interface upon completion? I have attached the code for the button click event and the application reference method that starts the Pega runtime and loads the Pega project.
***Edited by Moderator: Pooja Gadige to add platform capability tag***
@DarrellE It looks like you are launching Runtime from your Click event. Does Runtime shutdown again when it has completed the automation? If so, you could wait for the process to terminate in your code. If it stays running, then would need some means of having Runtime signa your application. The easiest way there would be to add some sort of service endpoint to your C# application and have Runtime call that service. You could also go the "easy" way and simply have Runtime create a file that your C# application is watching for.