public CountdownTimer(
     int hour, int minute, int second, int millisecond, int interval,
     IntervalUnits intervalUnit, bool useHighResolution)
     : base(hour, minute, second, millisecond, interval,
     intervalUnit, useHighResolution)
 {
 }
Exemple #2
0
        /// <summary>
        ///		Creates a new instance of the <see cref="PayPalInterval"/> class, parsing
        ///		the specified PayPal interval string.
        /// </summary>
        /// <param name="intervalString"></param>
        public PayPalInterval(string intervalString)
        {
            string[] parts;

            parts     = intervalString.Split(" ".ToCharArray());
            _quantity = int.Parse(parts[0]);

            switch (parts[1].ToUpper())
            {
            case "D":
                _units = IntervalUnits.Days;
                break;

            case "W":
                _units = IntervalUnits.Weeks;
                break;

            case "M":
                _units = IntervalUnits.Months;
                break;

            case "Y":
                _units = IntervalUnits.Years;
                break;
            }
        }
 public CountdownTimer(
     int hour, int minute, int second, int millisecond, int interval,
     IntervalUnits intervalUnit, bool useHighResolution)
     :
     base(hour, minute, second, millisecond, interval,
          intervalUnit, useHighResolution)
 {
 }
Exemple #4
0
        public CustomTimer(
            int hour, int minute, int second, int millisecond, int interval,
            IntervalUnits intervalUnit, bool useHighResolution)
        {
            Hour              = hour;
            Minute            = minute;
            Second            = second;
            Millisecond       = millisecond;
            Interval          = interval;
            IntervalUnit      = intervalUnit;
            UseHighResolution = useHighResolution;

            //Init ();
        }
Exemple #5
0
        public CustomTimer(
            int hour, int minute, int second, int millisecond, int interval,
            IntervalUnits intervalUnit, bool useHighResolution)
        {
            Hour = hour;
            Minute = minute;
            Second = second;
            Millisecond = millisecond;
            Interval = interval;
            IntervalUnit = intervalUnit;
            UseHighResolution = useHighResolution;

            //Init ();
        }
Exemple #6
0
 public TimeAndInterval(UInt64 time, UInt32 interval, IntervalUnits units)
     : this(time, interval, (Byte)units)
 {
 }
Exemple #7
0
 /// <summary>
 ///		Creates a new instance of the <see cref="PayPalInterval"/> class.
 /// </summary>
 /// <param name="quantity"></param>
 /// <param name="units"></param>
 public PayPalInterval(int quantity, IntervalUnits units)
 {
     _quantity = quantity;
     _units    = units;
 }