Exemple #1
0
        /// <summary>Called when the engine has begun planning for a prior bundle.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnPlanRelatedBundle(Wix.PlanRelatedBundleEventArgs args)
        {
            LogVerbose("Enter Method: OnPlanRelatedBundle");
            WPFBootstrapperEventArgs <Wix.PlanRelatedBundleEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.PlanRelatedBundleEventArgs>(args);

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

            this.TryInvoke(new Action(() => { this.model.OnPlanRelatedBundle(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnPlanRelatedBundle(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "PlanRelatedBundle");
        }
        Result IBootstrapperApplication.OnPlanRelatedBundle(string wzBundleId, ref RequestState pRequestedState)
        {
            PlanRelatedBundleEventArgs args = new PlanRelatedBundleEventArgs(wzBundleId, pRequestedState);
            this.OnPlanRelatedBundle(args);

            pRequestedState = args.State;
            return args.Result;
        }
 /// <summary>
 /// Called when the engine has begun planning for a prior bundle.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnPlanRelatedBundle(PlanRelatedBundleEventArgs args)
 {
     EventHandler<PlanRelatedBundleEventArgs> handler = this.PlanRelatedBundle;
     if (null != handler)
     {
         handler(this, args);
     }
 }