public void Terminate() { logger.Log(string.Empty); logger.Info("Initiating shutdown procedure..."); splashScreen = uiFactory.CreateSplashScreen(appConfig); actionCenter.Close(); taskbar.Close(); DeregisterEvents(); var success = operations.TryRevert() == OperationResult.Success; if (success) { logger.Info("Application successfully finalized."); logger.Log(string.Empty); } else { logger.Info("Shutdown procedure failed!"); logger.Log(string.Empty); } splashScreen.Close(); }
private void CloseShell() { if (Settings?.ActionCenter.EnableActionCenter == true) { actionCenter.Close(); } if (Settings?.Taskbar.EnableTaskbar == true) { taskbar.Close(); } }