/// <summary> /// Creates a HostedControlsNavigator. /// </summary> /// <param name="name">The name of the navigator from the configuration file.</param> public UserControlsNavigator(string name) { Name = name; _settings = UIPConfiguration.Config.GetHostedControlsSettings(name); ViewManager = ViewManagerFactory.Create(name); SetState(StateFactory.Create(name)); }
/// <summary> /// Overloaded. Initializes a new OpenNavigator. /// </summary> /// <param name="name">The name of the navigation graph to which open navigation applies.</param> /// <param name="taskId">The task identifier (a GUID associated with the task).</param> public OpenNavigator(string name, Guid taskId) { Name = name; ViewManager = ViewManagerFactory.Create(); SetState(StateFactory.Load(name, taskId)); _cacheConfiguration = UIPConfiguration.Config.GetCacheConfiguration(); }
/// <summary> /// Creates the appropiate <see cref="Microsoft.ApplicationBlocks.UIProcess.IViewManager"/> for a wizard. /// <remarks>For the WizardNavigator, the IViewManager is always a <see cref="Microsoft.ApplicationBlocks.UIProcess.WizardViewManager"/></remarks> /// </summary> /// <param name="name">The name of the IViewManager to create.</param> /// <returns>A WizardViewManager.</returns> protected override IViewManager CreateViewManager(string name) { IViewManager viewManager = ViewManagerFactory.Create(name, new object[] { this.NavigationSettings.Views() }); if (!(viewManager is WizardViewManager)) { throw new UIPException(Resource.ResourceManager.FormatMessage(Resource.Exceptions.RES_ExceptionWizardViewManagerIsRequired)); } return(viewManager); }
internal static void OnCompletion() { foreach (IViewManager view in ViewManagerFactory.GetViewManagers()) { if (view.GetActiveViewCount() > 0) { return; } } NotifyShutdownListeners(); }
/// <summary> /// Creates the view manager for this navigator. /// </summary> /// <param name="name">Name of the view manager to create, as defined in the configuration file.</param> /// <returns>The view manager.</returns> protected virtual IViewManager CreateViewManager(string name) { return(ViewManagerFactory.Create(name)); }