示例#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);
     }
 }