/// <summary> /// Gets the current user calendar list. /// </summary> /// <param name="CurrentUserID">The current user ID.</param> /// <returns></returns> private List <UserCalendar> GetCurrentUserCalendarList(string CurrentUserID) { List <UserCalendar> calList = null; if (IsActivity() || IsHistory()) { calList = UserCalendar.GetCalendarAccessList(CurrentUserID); if (calList != null) { UserCalendarComparer ucc = new UserCalendarComparer(); calList.Sort(ucc); } } return(calList); }
/// <summary> /// Gets the current user calendar list. /// </summary> /// <param name="CurrentUserID">The current user ID.</param> /// <returns></returns> private List<UserCalendar> GetCurrentUserCalendarList(string CurrentUserID) { List<UserCalendar> calList = null; if (IsActivity() || IsHistory()) { calList = UserCalendar.GetCalendarAccessList(CurrentUserID); if (calList != null) { UserCalendarComparer ucc = new UserCalendarComparer(); calList.Sort(ucc); } } return calList; }