private string getHoliday(DateTime date)
        {
            HolidayAPICall holiday = new HolidayAPICall();

            //DateTime today = DateTime.Today;

            if (holiday == null)
            {
                return("notHoliday");
            }

            string holidayResults = holiday.getHoliday(date);

            if (holidayResults == null)
            {
                return("notHoliday");
            }

            //Debug.WriteLine(holidayResults);
            return(holiday.getHoliday(date));
        }
Exemple #2
0
        }//end Load_Recipe_Random()

        //helper class for testing purposes
        //--------------------Is_Holiday(object sender, EventArgs e)
        protected void Is_Holiday(object sender, EventArgs e)
        {
            HolidayAPICall holiday = new HolidayAPICall();
            DateTime       today   = DateTime.Today;
            //HolidayInfo.Text = holiday.getHoliday(today);
        }//end Is_Holiday()