﻿using System;
using Microsoft.SPOT;

namespace IntervalTimer
{
    public class IntervalTimer
    {
        public TimeSpan ShortDuration { get; set; }
        public TimeSpan LongDuration { get; set; }

        public IntervalTimer(TimeSpan shortDuration, TimeSpan longDuration)
        {
            ShortDuration = shortDuration;
            LongDuration = longDuration;
        }

        public IntervalTimer(int shortSeconds, int longSeconds)
        {
            ShortDuration = new TimeSpan(0, 0, shortSeconds);
            LongDuration = new TimeSpan(0, 0, longSeconds);
        }
    }
}

﻿using System;
using Microsoft.SPOT;

namespace IntervalTimer
{
    public delegate void IntervalEventHandler(object sender, EventArgs e);

    public class IntervalTimer
    {
        public TimeSpan ShortDuration { get; set; }
        public TimeSpan LongDuration { get; set; }

        public IntervalTimer(TimeSpan shortDuration, TimeSpan longDuration)
        {
            ShortDuration = shortDuration;
            LongDuration = longDuration;
        }

        public IntervalTimer(int shortSeconds, int longSeconds)
        {
            ShortDuration = new TimeSpan(0, 0, shortSeconds);
            LongDuration = new TimeSpan(0, 0, longSeconds);
        }

        
    }
}

Add (temporary) event handler delegate.
Add (temporary) event handler delegate.
