Ejemplo n.º 1
0
        /// <summary>Called when the engine has begun installing the bundle.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnDetectUpdateBegin(Wix.DetectUpdateBeginEventArgs args)
        {
            LogVerbose("Enter Method: OnDetectUpdateBegin");
            WPFBootstrapperEventArgs <Wix.DetectUpdateBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectUpdateBeginEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnDetectUpdateBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectUpdateBegin(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnDetectUpdateBegin");
        }
Ejemplo n.º 2
0
        /// <summary>Called when the engine has begun installing the bundle.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnDetectUpdateBegin(Wix.DetectUpdateBeginEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "DetectUpdateBegin");
            WPFBootstrapperEventArgs <Wix.DetectUpdateBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectUpdateBeginEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnDetectUpdateBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectUpdateBegin(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "DetectUpdateBegin");
        }
Ejemplo n.º 3
0
        Result IBootstrapperApplication.OnDetectUpdateBegin(string wzUpdateLocation, int nRecommendation)
        {
            DetectUpdateBeginEventArgs args = new DetectUpdateBeginEventArgs(wzUpdateLocation, nRecommendation);
            this.OnDetectUpdateBegin(args);

            return args.Result;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Called when the update detection phase has begun.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnDetectUpdateBegin(DetectUpdateBeginEventArgs args)
 {
     EventHandler<DetectUpdateBeginEventArgs> handler = this.DetectUpdateBegin;
     if (null != handler)
     {
         handler(this, args);
     }
 }