コード例 #1
0
ファイル: EventArgs.cs プロジェクト: Jeremiahf/wix3
 /// <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;
 }
コード例 #2
0
ファイル: BootstrapperApplication.cs プロジェクト: zooba/wix3
        Result IBootstrapperApplication.OnSystemShutdown(EndSessionReasons dwEndSession, int nRecommendation)
        {
            SystemShutdownEventArgs args = new SystemShutdownEventArgs(dwEndSession, nRecommendation);
            this.OnSystemShutdown(args);

            return args.Result;
        }