Пример #1
0
 public bool IsActive(IActiveLog item, DateTime sd, DateTime ed)
 {
     throw new NotImplementedException();
 }
Пример #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));
 }
Пример #3
0
 public bool IsActive(IActiveLog item)
 {
     throw new NotImplementedException();
 }
Пример #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);
 }