[VMware Launcher 2.0.9.7]

- Enhancement: #4 Verify Windows services have properly terminated upon shutdown.
- Moved instanciation of ServiceControl class from Startup.xaml.cs to StatusWindow.xaml.cs.
This commit is contained in:
2021-04-13 12:04:14 +01:00
parent a9d7e48fac
commit f5b9c8f7a7
10 changed files with 72 additions and 9 deletions
+12
View File
@@ -6,6 +6,18 @@ namespace VMwareLauncher
{
public static void Shutdown(int exitCode)
{
switch (exitCode)
{
case 0:
Startup.trayIcon.ShowShutdownSuccessMessage();
break;
case -1:
Startup.trayIcon.WarnServiceShutdownFailure();
break;
default:
break;
}
Startup.trayIcon.Destroy();
Environment.Exit(exitCode);
}