/// <summary>Called when the engine has begun registering the location and visibility of the bundle.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnRegisterBegin(Wix.RegisterBeginEventArgs args) { LogVerbose("Enter Method: OnRegisterBegin"); WPFBootstrapperEventArgs <Wix.RegisterBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.RegisterBeginEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnRegisterBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnRegisterBegin(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnRegisterBegin"); }
/// <summary>Called when the engine has begun registering the location and visibility of the bundle.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnRegisterBegin(Wix.RegisterBeginEventArgs args) { this.LogBootstrapperEnterEvent(args, "RegisterBegin"); WPFBootstrapperEventArgs <Wix.RegisterBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.RegisterBeginEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnRegisterBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnRegisterBegin(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "RegisterBegin"); }