Ejemplo n.º 1
0
        /// <summary>
        /// Initializes an instance of the <see cref="UserCommandContext"/> class.
        /// </summary>
        /// <param name="pParentManager">The parent command manager.</param>
        /// <param name="pId">The user command context id.</param>
        public UserCommandContext(UserCommandManager pParentManager, string pId)
        {
            this.mParentManager      = pParentManager;
            this.mIsExecutingCommand = false;

            this.Id                  = pId;
            this.CommandsList        = new ObservableCollection <IUserCommand>();
            this.CurrentCommandIndex = -1;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserCommandSessionList"/> class.
 /// </summary>
 /// <param name="pParentManager">The parent command manager.</param>
 public UserCommandSessionList(UserCommandManager pParentManager)
 {
     this.mParentManager = pParentManager;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes an instance of the <see cref="UserCommandSession"/> class.
 /// </summary>
 /// <param name="pParentManager">The parent command manager.</param>
 public UserCommandSession(UserCommandManager pParentManager)
 {
     this.mParentManager = pParentManager;
     this.mContextes     = new Dictionary <string, UserCommandContext>();
     this.SwitchContext(CommandConstants.DEFAULT_CONTEXT_ID);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes an instance of the <see cref="AutoTestCommandContext"/> class.
 /// </summary>
 /// <param name="pParentManager">The parent command manager.</param>
 /// <param name="pId">The user command context id.</param>
 public AutoTestCommandContext(UserCommandManager pParentManager, string pId)
     : base(pParentManager, pId)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates a context with the given id.
 /// </summary>
 /// <param name="pParentManager">The parent command manager.</param>
 /// <param name="pId">The id of the new context.</param>
 /// <returns>The new context if a context having the same id does not have the same id, null otherwise.</returns>
 protected virtual UserCommandContext CustomCreateContext(UserCommandManager pParentManager, string pId)
 {
     return(new UserCommandContext(pParentManager, pId));
 }