how to restart a gui in c# visual studio code example Example: how to close and reopen an app in c# Application.Restart();