Click here to Skip to main content
15,884,177 members
Articles / Programming Languages / C#

Recurring Date Generator with Pattern Coding

Rate me:
Please Sign up or sign in to vote.
4.95/5 (51 votes)
4 Sep 2007CPOL4 min read 145.5K   6.9K   98  
Create recurring dates using a user-defined pattern. Create recurring dates from a coded value that defines what the pattern should be.
using System;
using System.Collections.Generic;
using System.Text;

namespace BOCA.RecurrenceGenerator
{
    public class RecurrenceMananger
    {
        /// <summary>
        /// Starting point for getting Recurrence items.
        /// </summary>
        public RecurrenceMananger() { }

        /// <summary>
        /// Get a Generic List of IRecurrenceItem objects
        /// </summary>
        /// <param name="recurrenceSettings"></param>
        /// <returns>List<IRecurrenceItem></returns>
        public RecurrenceValues GetRecurrenceItems(RecurrenceSettings recurrenceSettings)
        {
            RecurrenceValues returnValues = recurrenceSettings.GetValues();
            return returnValues;
        }

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) BOCA Software Technologies, Inc.
United States United States
.NET Developer in Garner, North Carolina. Specializing in WinForms development in C#, VB.Net.

CEO/Founder BOCA Software Technologies, Inc.

Comments and Discussions