Example #1
0
        protected virtual CountryCloseDaysListEx DoLoad(long countryid, DateTime from, DateTime to)
        {
            CountryCloseDaysListEx item = new CountryCloseDaysListEx(countryid, from, to);

            _diction[countryid] = item;
            return(item);
        }
Example #2
0
        public YearlyWorkingDay CloseDayExists(long countryid, DateTime date)
        {
            CountryCloseDaysListEx item  = this[countryid];
            YearlyWorkingDay       feast = null;

            if (item != null)
            {
                item.TryGetValue(date, out feast);
            }

            return(feast);
        }
Example #3
0
 public CountryCloseDaysListEx this[long id]
 {
     get
     {
         CountryCloseDaysListEx item = null;
         if (!_diction.TryGetValue(id, out item))
         {
             item = DoLoad(id, FromDate, ToDate);
         }
         return(item);
     }
 }