Пример #1
0
 /// <summary>
 /// Adds an exception recurrence rule to the recurring component
 /// </summary>
 /// <param name="recur">The recurrence rule to add</param>
 public void AddException(Recur recur)
 {
     if (ExRule != null)
     {
         Recur[] rules = new Recur[ExRule.Length + 1];
         ExRule.CopyTo(rules, 0);
         rules[rules.Length - 1] = recur;
         ExRule = rules;
     }
     else
     {
         ExRule = new Recur[] { recur }
     };
 }
Пример #2
0
        /// <summary>
        /// Adds an exception recurrence rule to the recurring component
        /// </summary>
        /// <param name="recur">The recurrence rule to add</param>
        public void AddException(Recur recur)
        {
            if (string.IsNullOrEmpty(recur.Name))
            {
                recur.Name = "EXRULE";
            }

            if (ExRule != null)
            {
                Recur[] rules = new Recur[ExRule.Length + 1];
                ExRule.CopyTo(rules, 0);
                rules[rules.Length - 1] = recur;
                ExRule = rules;
            }
            else
            {
                ExRule = new Recur[] { recur }
            };
        }
Пример #3
0
        /// <summary>
        /// Adds an exception recurrence rule to the recurring component
        /// </summary>
        /// <param name="recur">The recurrence rule to add</param>
        virtual public void AddExceptionPattern(RecurrencePattern recur)
        {
            if (string.IsNullOrEmpty(recur.Name))
            {
                recur.Name = "EXRULE";
            }

            recur.Parent = this;

            if (ExRule != null)
            {
                RecurrencePattern[] rules = new RecurrencePattern[ExRule.Length + 1];
                ExRule.CopyTo(rules, 0);
                rules[rules.Length - 1] = recur;
                ExRule = rules;
            }
            else
            {
                ExRule = new RecurrencePattern[] { recur }
            };
        }