Пример #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");
        }
        /// <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
 void DetectPriorBundleHandler(object sender, DetectPriorBundleEventArgs e)
 {
     Logger.Standard("Detect prior bundle: {0}", e.BundleId);
 }
Пример #4
0
 /// <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);
     }
 }