// Token: 0x06002819 RID: 10265 RVA: 0x000E2E20 File Offset: 0x000E1020
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            this.infobar.SetInfobarClass("infobarEdit");
            this.infobar.SetShouldHonorHideByDefault(true);
            string queryStringParameter = Utilities.GetQueryStringParameter(base.Request, "a", false);
            string type = base.OwaContext.FormsRegistryContext.Type;

            if (ObjectClass.IsMeetingResponse(type))
            {
                this.isNew = string.Equals(queryStringParameter, "New", StringComparison.OrdinalIgnoreCase);
                if (this.isNew)
                {
                    this.newItemType = NewItemType.New;
                }
                base.Item = base.Initialize <MeetingResponse>(EditMeetingResponse.prefetchProperties);
                MeetingMessage meetingMessage = (MeetingMessage)base.Item;
                if (meetingMessage.From != null)
                {
                    this.isSendOnBehalfOf = (string.CompareOrdinal(base.UserContext.ExchangePrincipal.LegacyDn, meetingMessage.From.EmailAddress) != 0);
                }
                this.InitializeMeetingResponse();
            }
            else if (ObjectClass.IsMeetingRequest(type))
            {
                this.itemType = StoreObjectType.MeetingRequest;
                this.isNew    = string.Equals(queryStringParameter, "Forward", StringComparison.OrdinalIgnoreCase);
                if (this.isNew)
                {
                    this.newItemType = NewItemType.Forward;
                }
                base.Item = base.Initialize <MeetingRequest>(EditMeetingResponse.prefetchProperties);
            }
            else
            {
                if (!ObjectClass.IsMeetingCancellation(type))
                {
                    ExTraceGlobals.CalendarDataTracer.TraceDebug <string>((long)this.GetHashCode(), "Unsupported item type '{0}' for edit meeting page", type);
                    throw new OwaInvalidRequestException(string.Format("Unsupported item type '{0}' for edit meeting page", type));
                }
                this.itemType = StoreObjectType.MeetingCancellation;
                this.isNew    = string.Equals(queryStringParameter, "Forward", StringComparison.OrdinalIgnoreCase);
                if (this.isNew)
                {
                    this.newItemType = NewItemType.Forward;
                }
                this.infobar.AddMessage(SanitizedHtmlString.FromStringId(-161808760), InfobarMessageType.Informational);
                base.Item = base.Initialize <MeetingCancellation>(EditMeetingResponse.prefetchProperties);
            }
            base.DeleteExistingDraft = this.isNew;
            if (!this.isNew && base.Item is MessageItem)
            {
                MessageItem messageItem = (MessageItem)base.Item;
                if (messageItem.GetValueOrDefault <bool>(MessageItemSchema.HasBeenSubmitted))
                {
                    messageItem.AbortSubmit();
                }
            }
            this.bodyMarkup          = BodyConversionUtilities.GetBodyFormatOfEditItem(base.Item, this.newItemType, base.UserContext.UserOptions);
            this.toolbar             = new EditMessageToolbar(((MeetingMessage)base.Item).Importance, this.bodyMarkup);
            this.toolbar.ToolbarType = (base.IsPreviewForm ? ToolbarType.Preview : ToolbarType.Form);
            this.toolbar.IsComplianceButtonAllowedInForm = false;
            this.messageRecipientWell = new MessageRecipientWell((MeetingMessage)base.Item);
            this.showBcc = this.messageRecipientWell.HasRecipients(RecipientWellType.Bcc);
        }