Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/05/09 14:40:53 (15 years ago)
Author:
kgrading
Message:

added calendar behavior in the whole application (#669)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/ConfigurationManager/UptimeManager.cs

    r2021 r2025  
    7272    }
    7373
    74     public bool isOnline(DateTime time) {
     74    public bool isOnline() {
    7575      foreach (Appointment app in Appointments)
    76         if ((time >= app.StartDate) &&
    77             (time <= app.EndDate))
     76        if ((DateTime.Now >= app.StartDate) &&
     77            (DateTime.Now <= app.EndDate))
    7878          return true;
    7979      return false;
Note: See TracChangeset for help on using the changeset viewer.