コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <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));
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 /// <summary>
 /// Overrides. Creates a new <see cref="Microsoft.ApplicationBlocks.UIProcess.State"/> for OpenNavigation.
 /// </summary>
 /// <returns></returns>
 protected override State CreateState()
 {
     return(StateFactory.Create());
 }
コード例 #7
0
 /// <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));
 }
コード例 #8
0
 /// <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));
 }