/// <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> /// Loads a State object using the type specified in the configuration file for this navigator and task ID. /// Navigators can override this if they need to load state in a different way. /// </summary> /// <param name="taskId">The identifier of the task to load the state for.</param> /// <returns>The state that was created.</returns> protected virtual State LoadState(Guid taskId) { return(StateFactory.Load(Name, taskId)); }
/// <summary> /// Creates a State object using the type specified in the configuration file for this navigator. /// Navigators can override this if they need to create state in a different way. /// </summary> /// <returns>The state that was created.</returns> protected virtual State CreateState() { return(StateFactory.Create(Name)); }
/// <summary> /// Overrides. Loads the <see cref="Microsoft.ApplicationBlocks.UIProcess.State"/> of the OpenNavigator for the given task ID. /// </summary> /// <param name="taskId">The task identifier (a GUID associated with the task).</param> /// <returns>The loaded state.</returns> protected override State LoadState(Guid taskId) { return(StateFactory.Load(taskId)); }
/// <summary> /// Overrides. Creates a new <see cref="Microsoft.ApplicationBlocks.UIProcess.State"/> for OpenNavigation. /// </summary> /// <returns></returns> protected override State CreateState() { return(StateFactory.Create()); }
/// <summary> /// Creates a graph navigator that resumes a saved task. /// </summary> /// <param name="name">The name of the graph navigator in the configuration file.</param> /// <param name="taskId">The task ID of a previously saved task.</param> public GraphNavigator(string name, Guid taskId) { Initialize(name); SetState(StateFactory.Load(name, taskId)); }
/// <summary> /// Creates a graph navigator. /// </summary> /// <param name="name">The name of the graph navigator in the configuration file.</param> public GraphNavigator(string name) { Initialize(name); SetState(StateFactory.Create(name)); }