/// <summary> /// Called when the WizardPage becomes inactive /// </summary> public virtual void Deactivate(WizardNavigationReasons reason) { _active = false; _currentLocation = null; Debug.WriteLine(string.Format("The '{0}' is being deactivated because the Wizard is '{1}'.", this.GetType().Name, reason.ToString())); }
/// <summary> /// Called when the WizardPage becomes active /// </summary> /// <param name="previousPage">The WizardPage that was the previous active page</param> /// <param name="currentLocation">The WizardNavigationLocation that directed the Wizard to this WizardPage</param> public virtual void Activate(IWizardPage previousPage, WizardNavigationLocation currentLocation, WizardNavigationReasons reason) { _active = true; _currentLocation = currentLocation; Debug.WriteLine(string.Format("The '{0}' is being activated because the Wizard is '{1}'.", this.GetType().Name, reason.ToString())); }