Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of the <see cref="SystemShutdownEventArgs"/> class.
 /// </summary>
 /// <param name="reasons">The reason the application is requested to close or being closed.</param>
 /// <param name="recommendation">The recommendation from the engine.</param>
 public SystemShutdownEventArgs(EndSessionReasons reasons, int recommendation)
     : base(recommendation)
 {
     this.reasons = reasons;
 }
Exemplo n.º 2
0
        Result IBootstrapperApplication.OnSystemShutdown(EndSessionReasons dwEndSession, int nRecommendation)
        {
            SystemShutdownEventArgs args = new SystemShutdownEventArgs(dwEndSession, nRecommendation);
            this.OnSystemShutdown(args);

            return args.Result;
        }