Exemple #1
0
        /// <summary>Called when the engine has completed registering the location and visilibity of the bundle.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnRegisterComplete(Wix.RegisterCompleteEventArgs args)
        {
            LogVerbose("Enter Method: OnRegisterComplete");
            WPFBootstrapperEventArgs <Wix.RegisterCompleteEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.RegisterCompleteEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnRegisterComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnRegisterComplete(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnRegisterComplete");
        }
        /// <summary>Called when the engine has completed registering the location and visilibity of the bundle.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnRegisterComplete(Wix.RegisterCompleteEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "RegisterComplete");
            WPFBootstrapperEventArgs <Wix.RegisterCompleteEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.RegisterCompleteEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnRegisterComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnRegisterComplete(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "RegisterComplete");
        }
 /// <summary>
 /// Called when the engine has completed registering the location and visilibity of the bundle.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnRegisterComplete(RegisterCompleteEventArgs args)
 {
     EventHandler<RegisterCompleteEventArgs> handler = this.RegisterComplete;
     if (null != handler)
     {
         handler(this, args);
     }
 }