Exemple #1
0
        public void GetMessageAnnotationInternals()
        {
            string idString   = (string)base.GetParameter("sId");
            string divErrorId = "divFPErr";

            this.Writer.Write("<div id=\"divFPTrR\">");
            Infobar infobar = new Infobar(divErrorId, "infobar");

            infobar.Render(this.Writer);
            MessageAnnotationHost.RenderMessageAnnotationDivStart(this.Writer, "msgnotediv");
            string messageNoteText = string.Empty;

            PropertyDefinition[] prefetchProperties = new PropertyDefinition[]
            {
                MessageItemSchema.MessageAnnotation
            };
            using (MessageItem item = Utilities.GetItem <MessageItem>(base.UserContext, idString, prefetchProperties))
            {
                object obj = item.TryGetProperty(MessageItemSchema.MessageAnnotation);
                if (obj is string)
                {
                    messageNoteText = (obj as string);
                }
            }
            MessageAnnotationHost.RenderMessageAnnotationControl(this.Writer, "msgnotectrl", messageNoteText);
            MessageAnnotationHost.RenderMessageAnnotationDivEnd(this.Writer);
            this.Writer.Write("</div>");
        }
Exemple #2
0
        protected void RenderNoScriptInfobar()
        {
            SanitizedHtmlString noScriptHtml = Utilities.GetNoScriptHtml();
            Infobar             infobar      = new Infobar();

            infobar.AddMessageHtml(noScriptHtml, InfobarMessageType.Error);
            infobar.Render(base.SanitizingResponse);
        }
 protected void RenderErrorInfobar()
 {
     if (this.setDisplayPictureResult.ResultCode != SetDisplayPictureResultCode.NoError)
     {
         Infobar infobar = new Infobar();
         infobar.AddMessage(this.setDisplayPictureResult.ErrorMessage, InfobarMessageType.Error, "divSetPicErr");
         infobar.Render(base.Response.Output);
     }
 }
Exemple #4
0
 protected void RenderImageAttachmentInfobar()
 {
     if (this.AttachResult.ResultCode != AttachmentAddResultCode.NoError)
     {
         new StringBuilder();
         new SanitizedHtmlString(string.Empty);
         Infobar infobar = new Infobar();
         infobar.AddMessage(this.AttachResult.Message, InfobarMessageType.Warning, AttachmentWell.AttachmentInfobarErrorHtmlTag);
         infobar.Render(base.SanitizingResponse);
     }
 }
Exemple #5
0
        public void GetMailFolderTree()
        {
            ExTraceGlobals.UserOptionsCallTracer.TraceDebug((long)this.GetHashCode(), "OptionsEventHandler.GetMailFolderTree");
            FolderTree folderTree = MailboxFolderTree.CreateMailboxFolderTree(base.UserContext, base.UserContext.MailboxSession, FolderTreeRenderType.MailFolderWithoutSearchFolders, true);
            string     text       = "divFPErr";

            this.Writer.Write("<div id=\"divFPTrR\">");
            Infobar infobar = new Infobar(text, "infobar");

            infobar.Render(this.Writer);
            NavigationHost.RenderTreeRegionDivStart(this.Writer, null);
            NavigationHost.RenderTreeDivStart(this.Writer, "fptree");
            folderTree.ErrDiv = text;
            folderTree.Render(this.Writer);
            NavigationHost.RenderTreeDivEnd(this.Writer);
            NavigationHost.RenderTreeRegionDivEnd(this.Writer);
            this.Writer.Write("</div>");
        }
        public void GetFolderPickerTrees()
        {
            bool             requirePublicFolderTree = (bool)base.GetParameter("pTr");
            FolderPickerTree folderPickerTree        = FolderPickerTree.CreateFolderPickerTree(base.UserContext, requirePublicFolderTree);
            string           text = "divFPErr";

            this.Writer.Write("<div id=\"divFPTrR\">");
            Infobar infobar = new Infobar(text, "infobar");

            infobar.Render(this.Writer);
            NavigationHost.RenderTreeRegionDivStart(this.Writer, null);
            NavigationHost.RenderTreeDivStart(this.Writer, "fptree");
            folderPickerTree.ErrDiv = text;
            folderPickerTree.Render(this.Writer);
            NavigationHost.RenderTreeDivEnd(this.Writer);
            NavigationHost.RenderTreeRegionDivEnd(this.Writer);
            this.Writer.Write("</div>");
        }
        protected void RenderSecondaryNavigation()
        {
            Infobar    infobar = new Infobar("divErrDP", "infobar");
            ExDateTime date    = DateTimeUtilities.GetLocalTime().Date;

            DatePicker.Features features    = DatePicker.Features.MultiDaySelection | DatePicker.Features.WeekSelector;
            DatePicker          datePicker  = new DatePicker("dp", date, (int)features);
            MonthPicker         monthPicker = new MonthPicker(base.SessionContext, "divMp");

            if (base.SessionContext.ShowWeekNumbers)
            {
                features |= DatePicker.Features.WeekNumbers;
            }
            base.SanitizingResponse.Write("<div id=\"divCalPicker\">");
            infobar.Render(base.SanitizingResponse);
            datePicker.Render(base.SanitizingResponse);
            monthPicker.Render(base.SanitizingResponse);
            base.SanitizingResponse.Write("</div>");
        }
        // Token: 0x0600297F RID: 10623 RVA: 0x000E9F34 File Offset: 0x000E8134
        protected override void RenderViewInfobars()
        {
            Infobar infobar = new Infobar("divErr", "infobarMessageView");
            int     num     = 0;

            if (base.ShouldRenderELCInfobar)
            {
                this.RenderELCCommentAndQuota(infobar);
                if (base.IsELCInfobarVisible)
                {
                    num += 34;
                }
            }
            if (this.ShouldShowScheduledOofInfobar())
            {
                this.RenderOofNotificationInfobar(infobar);
                num += 20;
            }
            int daysUntilExpiration;

            if (Utilities.ShouldRenderExpiringPasswordInfobar(base.UserContext, out daysUntilExpiration))
            {
                this.RenderExpiringPasswordNotificationInfobar(infobar, daysUntilExpiration);
                num += 20;
            }
            if (Utilities.IsSMimeFeatureUsable(base.OwaContext) && !base.IsPublicFolder)
            {
                this.RenderSMimeControlUpdateInfobar(infobar);
            }
            if (0 < num)
            {
                int num2 = 60;
                if (num2 < num)
                {
                    num = num2;
                }
                this.lvRPContainerTop = num + 3 + 1;
            }
            infobar.Render(base.SanitizingResponse);
        }