/// <summary> /// Initializes a new instance of the WizardNavigationLocation class /// </summary> /// <param name="wizardPageType">The WizardPage Type that will handle this location in the navigation map</param> public WizardNavigationLocation(Type wizardPageType) { // make sure the type is not null if (wizardPageType == null) throw new ArgumentNullException("Type wizardPageType", "A location cannot be created for a missing Type reference"); // throw an exception if the type does not implement IWizardPage if (wizardPageType.GetInterface(typeof(IWizardPage).FullName) == null) throw new ArgumentException("Type wizardPageType", "The type must implement the IWizardPage interface"); _wizardPageType = wizardPageType; _paths = new WizardNavigationPathList(); }
/// <summary> /// Initializes a new instance of the WizardNavigationLocation class /// </summary> /// <param name="wizardPageType">The WizardPage Type that will handle this location in the navigation map</param> public WizardNavigationLocation(Type wizardPageType) { // make sure the type is not null if (wizardPageType == null) { throw new ArgumentNullException("Type wizardPageType", "A location cannot be created for a missing Type reference"); } // throw an exception if the type does not implement IWizardPage if (wizardPageType.GetInterface(typeof(IWizardPage).FullName) == null) { throw new ArgumentException("Type wizardPageType", "The type must implement the IWizardPage interface"); } _wizardPageType = wizardPageType; _paths = new WizardNavigationPathList(); }