Пример #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 OnDetectUpdateComplete(Wix.DetectUpdateCompleteEventArgs args)
        {
            LogVerbose("Enter Method: OnDetectUpdateComplete");
            WPFBootstrapperEventArgs <Wix.DetectUpdateCompleteEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectUpdateCompleteEventArgs>(args);

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

            this.TryInvoke(new Action(() => { this.model.OnDetectUpdateComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectUpdateComplete(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "DetectUpdateComplete");
        }
Пример #3
0
 void DetectUpdateCompleteHandler(object sender, DetectUpdateCompleteEventArgs e)
 {
     Logger.Standard("Detect update complete handler: {0}", e.Status, e.UpdateLocation);
 }
Пример #4
0
 /// <summary>
 /// Called when the update detection phase has completed.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnDetectUpdateComplete(DetectUpdateCompleteEventArgs args)
 {
     EventHandler<DetectUpdateCompleteEventArgs> handler = this.DetectUpdateComplete;
     if (null != handler)
     {
         handler(this, args);
     }
 }