示例#1
0
 public ScheduledTime(EventTimeBase Base, TimeSpan Offset)
 {
     _Base = Base;
     _Offset = Offset;
 }
示例#2
0
 /// <summary>
 /// intializes a simple scheduled time element from a pair of strings.  
 /// Here are the supported formats
 /// 
 /// BySecond - single integer representing the offset in ms value must be less then 1000
 /// ByMinute - A comma seperated list of integers representing the number of seconds and ms
 /// Hourly - A comma seperated list of integers representing the number of minutes, seconds and ms
 /// Daily - A time in hh:mm:ss AM/PM format
 /// Weekly - n, time where n represents an integer and time is a time in the Daily format
 /// Monthly - the same format as weekly.
 /// 
 /// </summary>
 /// <param name="StrBase">A string representing the base enumeration for the scheduled time</param>
 /// <param name="StrOffset">A string representing the offset for the time.</param>
 public ScheduledTime(string StrBase, string StrOffset)
 {
     //TODO:Create an IScheduled time factory method.
     _Base = (EventTimeBase)Enum.Parse(typeof(EventTimeBase), StrBase, true);
     Init(StrOffset);
 }
 public ScheduledTime(EventTimeBase Base, TimeSpan Offset)
 {
     _Base   = Base;
     _Offset = Offset;
 }
示例#4
0
 /// <summary>
 /// intializes a simple scheduled time element from a pair of strings.
 /// Here are the supported formats
 ///
 /// BySecond - single integer representing the offset in ms
 /// ByMinute - A comma seperate list of integers representing the number of seconds and ms
 /// Hourly - A comma seperated list of integers representing the number of minutes, seconds and ms
 /// Daily - A time in hh:mm:ss AM/PM format
 /// Weekly - n, time where n represents an integer and time is a time in the Daily format
 /// Monthly - the same format as weekly.
 ///
 /// </summary>
 /// <param name="StrBase">A string representing the base enumeration for the scheduled time</param>
 /// <param name="StrOffset">A string representing the offset for the time.</param>
 public ScheduledTime(string StrBase, string StrOffset)
 {
     //TODO:Create an IScheduled time factory method.
     Base = (EventTimeBase)Enum.Parse(typeof(EventTimeBase), StrBase, true);
     Init(StrOffset);
 }
示例#5
0
 public ScheduledTime(EventTimeBase bbase, TimeSpan offset)
 {
     Base   = bbase;
     Offset = offset;
 }
示例#6
0
 public ScheduledTime(EventTimeBase bbase, TimeSpan offset)
 {
     Base = bbase;
     Offset = offset;
 }
示例#7
0
 public ScheduledTime(EventTimeBase timeBase, TimeSpan offset)
 {
     _timeBase = timeBase;
     _offset = offset;
 }