private SUTime.Time ResolveWithYear(int year) { // TODO: If we knew location of article, can use that information to resolve holidays better ICollection <Holiday> holidays = holidayManager.GetHolidays(year); // Try to find this holiday foreach (Holiday h in holidays) { if (h.GetPropertiesKey().Equals(@base.GetDescriptionPropertiesKey())) { return(new SUTime.PartialTime(this, new Partial(h.GetDate()))); } } return(null); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); try { datePickerStart.Date = DateTime.Parse(Settings.getValueByKey("DATEPICKERSTART", DateTime.Now.ToString())); datePickerEnd.Date = DateTime.Parse(Settings.getValueByKey("DATEPICKEREND", DateTime.Now.AddDays(180).ToString())); } catch { } Holidays = HolidayManager.GetHolidays(); LoadListViewHolidays(); LoadlistViewNobMudYrd(); Load_listViewNobMudYrdCalendar(); App.Current.IsIdleChanged += onIsIdleChanged; }