コード例 #1
0
        /// <summary>
        /// Creates and adds new 'Store To Disk Folder' action to UserMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="folder">Disk folder where to store message.</param>
        public UserMessageRuleAction_StoreToDiskFolder Add_StoreToDisk(string description, string folder)
        {
            UserMessageRuleAction_StoreToDiskFolder action = new UserMessageRuleAction_StoreToDiskFolder(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                folder
                );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return(action);
        }
        /// <summary>
        /// Creates and adds new 'Store To Disk Folder' action to UserMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="folder">Disk folder where to store message.</param>
        public UserMessageRuleAction_StoreToDiskFolder Add_StoreToDisk(string description,string folder)
        {
            UserMessageRuleAction_StoreToDiskFolder action = new UserMessageRuleAction_StoreToDiskFolder(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                folder
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }