コード例 #1
0
ファイル: Client.cs プロジェクト: Falconne/ADLib
        private void AskForRestart()
        {
            var query = "A restart is required. Restart now? You may need to re-run the current script after the restart to complete your installation.";

            if (!_interactionHandler.GetYesNoResponse(query))
            {
                return;
            }

            WindowsHost.Restart(5);
            _interactionHandler.ExitWithSuccess("Exiting for reboot");
        }