/// <summary>
 /// Raises the CommandQueueActionPerformed event.
 /// </summary>
 /// <param name="actionType">the type of the action</param>
 /// <param name="actionId">The id of the action</param>
 private void RaiseCommandQueueActionPerformed(CommandQueueActionType actionType, Guid actionId)
 {
     if (_raiseEvents && this.CommandQueueActionPerformed != null)
     {
         var eventArgs = new CommandQueueActionPerformedEventArgs(actionType, actionId);
         this.CommandQueueActionPerformed.RaiseEvent(this, eventArgs);
     }
 }
		/// <summary>
		/// Initializes a new instance of the <see cref="CommandQueueActionPerformedEventArgs"/> class.
		/// </summary>
		/// <param name="actionType">Type of the action.</param>
		/// <param name="activeCommandStackId">The active command stack id. The command is executed on a queue in the stack with this id. Observers
		/// should examine this id and decide whether they act upon this event or ignore it (e.g. the command was on a different stack)</param>
		public CommandQueueActionPerformedEventArgs(CommandQueueActionType actionType, Guid activeCommandStackId)
		{
			this.ActionPerformed = actionType;
			this.ActiveCommandStackId = activeCommandStackId;
		}
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandQueueActionPerformedEventArgs"/> class.
 /// </summary>
 /// <param name="actionType">Type of the action.</param>
 /// <param name="activeCommandStackId">The active command stack id. The command is executed on a queue in the stack with this id. Observers
 /// should examine this id and decide whether they act upon this event or ignore it (e.g. the command was on a different stack)</param>
 public CommandQueueActionPerformedEventArgs(CommandQueueActionType actionType, Guid activeCommandStackId)
 {
     this.ActionPerformed      = actionType;
     this.ActiveCommandStackId = activeCommandStackId;
 }