[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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user