Exemplo n.º 1
0
        /// <summary>
        /// Creates and adds new 'Delete Message' action to UserMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        public UserMessageRuleAction_DeleteMessage Add_DeleteMessage(string description)
        {
            UserMessageRuleAction_DeleteMessage action = new UserMessageRuleAction_DeleteMessage(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description
                );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return(action);
        }
        /// <summary>
        /// Creates and adds new 'Delete Message' action to UserMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        public UserMessageRuleAction_DeleteMessage Add_DeleteMessage(string description)
        {
            UserMessageRuleAction_DeleteMessage action = new UserMessageRuleAction_DeleteMessage(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }