Return to user interface after automation is complete
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.