private void PlanBegin(object sender, PlanBeginEventArgs e) { lock (this) { this.executingPackageOrderIndex.Clear(); } }
private void OnPlanBegin(object sender, PlanBeginEventArgs e) { lock (_lock) { _progressPhases = (LaunchAction.Layout == _installer.Command.Action) ? 1 : 2; MessageAction = "Preparing:"; } }
/// <summary>Called when the engine has begun planning the installation.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnPlanBegin(Wix.PlanBeginEventArgs args) { LogVerbose("Enter Method: OnPlanBegin"); WPFBootstrapperEventArgs <Wix.PlanBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.PlanBeginEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnPlanBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnPlanBegin(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnPlanBegin"); }
/// <summary>Called when the engine has begun planning the installation.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnPlanBegin(Wix.PlanBeginEventArgs args) { this.LogBootstrapperEnterEvent(args, "PlanBegin"); WPFBootstrapperEventArgs <Wix.PlanBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.PlanBeginEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnPlanBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnPlanBegin(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "PlanBegin"); }
private void PlanBegin(object sender, PlanBeginEventArgs e) { lock (this) { this.progressPhases = (LaunchAction.Layout == WixBA.Model.PlannedAction) ? 1 : 2; this.executingPackageOrderIndex.Clear(); } }
Result IBootstrapperApplication.OnPlanBegin(int cPackages) { PlanBeginEventArgs args = new PlanBeginEventArgs(cPackages); this.OnPlanBegin(args); return args.Result; }
/// <summary> /// Called when the engine has begun planning the installation. /// </summary> /// <param name="args">Additional arguments for this event.</param> protected virtual void OnPlanBegin(PlanBeginEventArgs args) { EventHandler<PlanBeginEventArgs> handler = this.PlanBegin; if (null != handler) { handler(this, args); } }