Example #1
0
 public bool IsActive(IActiveLog item, DateTime sd, DateTime ed)
 {
     throw new NotImplementedException();
 }
Example #2
0
 /// <summary>
 /// Checks to see if an item was active during the date range
 /// </summary>
 /// <param name="item">The IActiveLogItem item</param>
 /// <param name="sd">The start of the date range</param>
 /// <param name="ed">The end of the date range</param>
 /// <returns>True if the item was active during the date range, otherwise false</returns>
 public bool IsActive(IActiveLog item, DateTime sd, DateTime ed)
 {
     return(item.EnableDate < ed && (item.DisableDate == null || item.DisableDate > sd));
 }
Example #3
0
 public bool IsActive(IActiveLog item)
 {
     throw new NotImplementedException();
 }
Example #4
0
 /// <summary>
 /// Checks to see if an item is currently active
 /// </summary>
 /// <param name="item">The IActiveLogItem item</param>
 /// <returns>True if the item is currently active, otherwise false</returns>
 public bool IsActive(IActiveLog item)
 {
     return(item.DisableDate == null);
 }