Beispiel #1
0
        /// <summary>
        /// Creates and adds new 'Store To Disk Folder' action to GlobalMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="folder">Disk folder where to store message.</param>
        public GlobalMessageRuleAction_StoreToDiskFolder Add_StoreToDisk(string description, string folder)
        {
            GlobalMessageRuleAction_StoreToDiskFolder action = new GlobalMessageRuleAction_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 GlobalMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="folder">Disk folder where to store message.</param>
        public GlobalMessageRuleAction_StoreToDiskFolder Add_StoreToDisk(string description,string folder)
        {
            GlobalMessageRuleAction_StoreToDiskFolder action = new GlobalMessageRuleAction_StoreToDiskFolder(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                folder
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }