public object[] smartLoad_ServerEvent() { object[] oReturn = new object[6]; try { oReturn[0] = "Done."; oReturn[1] = CUserVacations.GetUserVacationInfo(CUserInfo.UserId, DateTime.Now.Year); oReturn[2] = GetUserYearRequests(CUserInfo.UserId, DateTime.Now.Year); oReturn[3] = GetHolidaysCalendar(CUserInfo.UserId); oReturn[4] = CUserVacations.SetVacationDaysReferences(CUserInfo.ActualSystemId, CUserInfo.UserId); //dtVacationTypes and dtHolidays } catch (Exception ex) { oReturn[0] = null; oReturn[1] = "Error loading vacations.\n\n" + ex.Message + "\n\nStack Trace:\n\n" + ex.StackTrace; } return(oReturn); }