Exemplo n.º 1
0
        /// <summary>
        /// Creates and adds new 'Delete Message' action to GlobalMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        public GlobalMessageRuleAction_DeleteMessage Add_DeleteMessage(string description)
        {
            GlobalMessageRuleAction_DeleteMessage action = new GlobalMessageRuleAction_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 GlobalMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        public GlobalMessageRuleAction_DeleteMessage Add_DeleteMessage(string description)
        {
            GlobalMessageRuleAction_DeleteMessage action = new GlobalMessageRuleAction_DeleteMessage(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }