コード例 #1
0
        /// <summary>Called when the detection for a prior bundle has begun.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnDetectPriorBundle(Wix.DetectPriorBundleEventArgs args)
        {
            LogVerbose("Enter Method: OnDetectPriorBundle");
            WPFBootstrapperEventArgs <Wix.DetectPriorBundleEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectPriorBundleEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnDetectPriorBundle(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectPriorBundle(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnDetectPriorBundle");
        }
コード例 #2
0
        /// <summary>Called when the detection for a prior bundle has begun.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnDetectPriorBundle(Wix.DetectPriorBundleEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "DetectPriorBundle");
            WPFBootstrapperEventArgs <Wix.DetectPriorBundleEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectPriorBundleEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnDetectPriorBundle(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectPriorBundle(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "DetectPriorBundle");
        }
コード例 #3
0
ファイル: PagedViewModel.cs プロジェクト: jardrake03/incert
 void DetectPriorBundleHandler(object sender, DetectPriorBundleEventArgs e)
 {
     Logger.Standard("Detect prior bundle: {0}", e.BundleId);
 }
コード例 #4
0
ファイル: BootstrapperApplication.cs プロジェクト: zooba/wix3
 /// <summary>
 /// Called when the detection for a prior bundle has begun.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnDetectPriorBundle(DetectPriorBundleEventArgs args)
 {
     EventHandler<DetectPriorBundleEventArgs> handler = this.DetectPriorBundle;
     if (null != handler)
     {
         handler(this, args);
     }
 }