Esempio n. 1
0
        public static bool isTimeBlocked(TimeBlockFilter.TimeFilterObject timePolicy, DateTime target, ref string reason)
        {
            bool isBlocked = timePolicy.isBlocked(target);

            if (isBlocked)
            {
                reason = "Time <*" + target.ToShortTimeString() + "*> is blocked by time policy.";
            }
            return(isBlocked);
        }