/// <summary>
        /// Setups the recurrence.
        /// </summary>
        /// <param name="recurrence">The recurrence.</param>
        internal override void SetupRecurrence(Recurrence recurrence)
        {
            base.SetupRecurrence(recurrence);

            recurrence.EndDate = this.EndDate;
        }
 /// <summary>
 /// Setup the recurrence.
 /// </summary>
 /// <param name="recurrence">The recurrence.</param>
 internal virtual void SetupRecurrence(Recurrence recurrence)
 {
     recurrence.StartDate = this.StartDate;
 }
        /// <summary>
        /// Setups the recurrence.
        /// </summary>
        /// <param name="recurrence">The recurrence.</param>
        internal override void SetupRecurrence(Recurrence recurrence)
        {
            base.SetupRecurrence(recurrence);

            recurrence.NumberOfOccurrences = this.NumberOfOccurrences;
        }
 /// <summary>
 /// Checks if two recurrence objects are identical.
 /// </summary>
 /// <param name="otherRecurrence">The recurrence to compare this one to.</param>
 /// <returns>true if the two recurrences are identical, false otherwise.</returns>
 public override bool IsSame(Recurrence otherRecurrence)
 {
     return(base.IsSame(otherRecurrence) && this.dayOfMonth == ((MonthlyPattern)otherRecurrence).dayOfMonth);
 }
        /// <summary>
        /// Setups the recurrence.
        /// </summary>
        /// <param name="recurrence">The recurrence.</param>
        internal override void SetupRecurrence(Recurrence recurrence)
        {
            base.SetupRecurrence(recurrence);

            recurrence.NeverEnds();
        }
Пример #6
0
 /// <summary>
 /// Checks if two recurrence objects are identical.
 /// </summary>
 /// <param name="otherRecurrence">The recurrence to compare this one to.</param>
 /// <returns>true if the two recurrences are identical, false otherwise.</returns>
 public override bool IsSame(Recurrence otherRecurrence)
 {
     return(base.IsSame(otherRecurrence) && this.interval == ((IntervalPattern)otherRecurrence).interval);
 }