/// <summary>Called right after OnApplyBegin.</summary>
        /// <param name="args">Additional arguments for this event.</param>
        protected override void OnApplyPhaseCount(Wix.ApplyPhaseCountArgs args)
        {
            LogVerbose("Enter Method: OnApplyPhaseCount");
            WPFBootstrapperEventArgs <Wix.ApplyPhaseCountArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ApplyPhaseCountArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnApplyPhaseCount(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnApplyPhaseCount(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnApplyPhaseCount");
        }
        /// <summary>Called right after OnApplyBegin.</summary>
        /// <param name="args">Additional arguments for this event.</param>
        protected override void OnApplyPhaseCount(Wix.ApplyPhaseCountArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "ApplyPhaseCount");
            WPFBootstrapperEventArgs <Wix.ApplyPhaseCountArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ApplyPhaseCountArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnApplyPhaseCount(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnApplyPhaseCount(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "ApplyPhaseCount");
        }
Beispiel #3
0
 private void ApplyPhaseCount(object sender, ApplyPhaseCountArgs e)
 {
     this.progressPhases = e.PhaseCount;
 }
Beispiel #4
0
 /// <summary>
 /// Called right after OnApplyBegin.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnApplyPhaseCount(ApplyPhaseCountArgs args)
 {
     EventHandler<ApplyPhaseCountArgs> handler = this.ApplyPhaseCount;
     if (null != handler)
     {
         handler(this, args);
     }
 }