예제 #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));
 }