// Token: 0x0600027E RID: 638 RVA: 0x000154FC File Offset: 0x000136FC protected override void OnLoad(EventArgs e) { this.callTracer.TraceDebug((long)this.GetHashCode(), "ListViewPage.OnLoad"); this.errorMessage = string.Empty; this.folderId = QueryStringUtilities.CreateFolderStoreObjectId(base.UserContext.MailboxSession, base.Request, false); if (this.folderId == null) { this.algorithmTracer.TraceDebug((long)this.GetHashCode(), "folderId is null, using default folder"); this.folderId = this.DefaultFolderId; } else if (!Folder.IsFolderId(this.folderId)) { throw new OwaInvalidRequestException("The given Id is not a valid folder Id. Folder Id:" + this.folderId); } bool newSearch = base.UserContext.ForceNewSearch; this.GetSearchStringAndScope(); bool flag = false; ColumnId value = this.DefaultSortedColumn; SortOrder sortOrder = this.DefaultSortOrder; if (base.IsPostFromMyself()) { string formParameter = Utilities.GetFormParameter(base.Request, "hidcmdpst", false); string key; if ((key = formParameter) != null) { if (< PrivateImplementationDetails > { 30BFC313 - DE03 - 42E1 - 890C - A081E6097637 }.$$method0x6000270 - 1 == null)
protected override void OnLoad(EventArgs e) { ExTraceGlobals.CalendarCallTracer.TraceDebug((long)this.GetHashCode(), "Basic.CalendarView.OnLoad"); EditCalendarItemHelper.ClearUserContextData(base.UserContext); this.folderId = QueryStringUtilities.CreateFolderStoreObjectId(base.UserContext.MailboxSession, base.Request, false); if (this.folderId == null) { ExTraceGlobals.CalendarTracer.TraceDebug((long)this.GetHashCode(), "folderId is null, using default folder"); this.folderId = base.UserContext.CalendarFolderId; } if (this.folderId == null) { throw new OwaInvalidRequestException("Invalid folder id"); } StorePropertyDefinition displayName = StoreObjectSchema.DisplayName; PropertyDefinition calendarViewType = ViewStateProperties.CalendarViewType; PropertyDefinition readingPanePosition = ViewStateProperties.ReadingPanePosition; PropertyDefinition readingPanePositionMultiDay = ViewStateProperties.ReadingPanePositionMultiDay; PropertyDefinition viewWidth = ViewStateProperties.ViewWidth; PropertyDefinition dailyViewDays = ViewStateProperties.DailyViewDays; this.viewType = CalendarViewType.Min; string queryStringParameter = Utilities.GetQueryStringParameter(base.Request, "dy", false); string queryStringParameter2 = Utilities.GetQueryStringParameter(base.Request, "mn", false); string queryStringParameter3 = Utilities.GetQueryStringParameter(base.Request, "yr", false); int day; int month; int year; if (!string.IsNullOrEmpty(queryStringParameter) && int.TryParse(queryStringParameter, out day) && !string.IsNullOrEmpty(queryStringParameter2) && int.TryParse(queryStringParameter2, out month) && !string.IsNullOrEmpty(queryStringParameter3) && int.TryParse(queryStringParameter3, out year)) { try { ExDateTime exDateTime = new ExDateTime(base.UserContext.TimeZone, year, month, day); this.days = new ExDateTime[1]; this.days[0] = exDateTime.Date; } catch (ArgumentOutOfRangeException) { base.Infobar.AddMessageLocalized(883484089, InfobarMessageType.Error); } } if (this.days == null) { this.days = new ExDateTime[1]; this.days[0] = DateTimeUtilities.GetLocalTime().Date; } this.calendarAdapter = new CalendarAdapter(base.UserContext, this.folderId); this.calendarAdapter.LoadData(DailyView.QueryProperties, this.days, false, true); this.dailyView = new DailyView(base.UserContext, this.calendarAdapter); base.OnLoad(e); if (base.IsPostFromMyself()) { string formParameter = Utilities.GetFormParameter(base.Request, "hidcmdpst", false); if (string.CompareOrdinal(formParameter, "addjnkeml") == 0) { if (!base.UserContext.IsJunkEmailEnabled) { throw new OwaInvalidRequestException(LocalizedStrings.GetNonEncoded(552277155)); } InfobarMessage infobarMessage = JunkEmailHelper.AddEmailToSendersList(base.UserContext, base.Request); if (infobarMessage != null) { base.Infobar.AddMessage(infobarMessage); } } } base.UserContext.LastClientViewState = new CalendarModuleViewState(this.folderId, this.calendarAdapter.ClassName, this.days[0]); }