/// <summary> /// TimeInfo constructor for singular tasks. /// </summary> /// <param name="_CheckedTime">Date of task being checked/completed.</param> /// <param name="_Created">Date of task creation.</param> /// <param name="_Modified">Date of the last modification to this task.</param> /// <param name="_Start">Date of the first occurence for this task.</param> /// <param name="_Next">Date of the next occurence for this task.</param> /// <param name="_End">Date when task stops recurring.</param> public TimeInfo( DateTime _CheckedTime, DateTime _Created, DateTime _Modified, DateTime _Start, DateTime _Next, DateTime _End) { Summary = null; CheckedTime = _CheckedTime; Created = _Created; Modified = _Modified; Start = _Start; Next = _Next; Dismiss = DismissType.Never; Expired = false; End = _End; Iterations = 0; Count = 0; Yearly = 0; Monthly = 0; Weekly = 0; Daily = 0; TimeOfDay = TimeSpan.FromSeconds(86399); MonthFilter = 0; WeekFilter = 0; DayFilter = 0; SpecificDay = 0; }
/// <summary> /// Explicit TimeInfo constructor. /// </summary> /// <param name="_Summary">Description of this tasks schedule and how it repeats.</param> /// <param name="_CheckedTime">Date of task being checked/completed.</param> /// <param name="_Created">Date of task creation.</param> /// <param name="_Modified">Date of the last modification to this task.</param> /// <param name="_Start">Date of the first occurence for this task.</param> /// <param name="_Next">Date of the next occurence for this task.</param> /// <param name="_End">Date when task stops recurring.</param> /// <param name="_Dismiss">DissmissType timespan after due date ("Next") to remove task.</param> /// <param name="_Expired">Boolean for if this task has expired already.</param> /// <param name="_Iterations">Number of total occurences allowed.</param> /// <param name="_Count">Instance count of this task (starts at 1).</param> /// <param name="_Yearly">Number of years to iterate for simple recurrance.</param> /// <param name="_Monthly">Number of months to iterate for simple recurrance.</param> /// <param name="_Weekly">Number of weeks to iterate for simple recurrance.</param> /// <param name="_Daily">Number of days to iterate for simple recurrance.</param> /// <param name="_TimeOfDay">Time of day for complex recurrances.</param> /// <param name="_MonthFilter">Selected months for complex recurrances.</param> /// <param name="_WeekFilter">Selected weeks for complex recurrances.</param> /// <param name="_DayFilter">Selected days for complex recurrances.</param> /// <param name="_SpecificDay">Specific day for complex recurrances.</param> public TimeInfo( string _Summary, DateTime _CheckedTime, DateTime _Created, DateTime _Modified, DateTime _Start, DateTime _Next, DateTime _End, DismissType _Dismiss, bool _Expired, int _Iterations, int _Count, int _Yearly, int _Monthly, int _Weekly, int _Daily, TimeSpan _TimeOfDay, MonthFlag _MonthFilter, WeekFlag _WeekFilter, DayFlag _DayFilter, int _SpecificDay) { Summary = _Summary; CheckedTime = _CheckedTime; Created = _Created; Modified = _Modified; Start = _Start; Next = _Next; End = _End; Dismiss = _Dismiss; Expired = _Expired; Iterations = _Iterations; Count = _Count; Yearly = _Yearly; Monthly = _Monthly; Weekly = _Weekly; Daily = _Daily; TimeOfDay = _TimeOfDay; MonthFilter = _MonthFilter; WeekFilter = _WeekFilter; DayFilter = _DayFilter; SpecificDay = _SpecificDay; }
/// <summary> /// Blank TimeInfo constructor. /// </summary> public TimeInfo() { Summary = null; CheckedTime = DateTime.MinValue; Created = DateTime.MinValue; Modified = DateTime.MinValue; Start = DateTime.MinValue; Next = DateTime.MinValue; End = DateTime.MinValue; Iterations = 0; Count = 0; Dismiss = 0; Yearly = 0; Monthly = 0; Weekly = 0; Daily = 0; TimeOfDay = TimeSpan.FromSeconds(86399); MonthFilter = 0; WeekFilter = 0; DayFilter = 0; SpecificDay = 0; }