Example #1
0
 // Token: 0x06002922 RID: 10530 RVA: 0x000E8F9E File Offset: 0x000E719E
 protected void RenderCategories()
 {
     if (base.Item != null)
     {
         CategorySwatch.RenderCategories(base.OwaContext, base.SanitizingResponse, base.Item);
     }
 }
Example #2
0
 // Token: 0x06002AA5 RID: 10917 RVA: 0x000EF53C File Offset: 0x000ED73C
 protected void RenderData()
 {
     if (base.HasCategories)
     {
         this.isSectionStarted = false;
         this.sectionHeader    = LocalizedStrings.GetHtmlEncoded(-2125925114);
         this.sectionId        = "spnSCat";
         this.RenderSectionStart(false);
         base.Response.Write("<div class=\"\">");
         CategorySwatch.RenderCategories(base.OwaContext, base.SanitizingResponse, base.Item);
         base.Response.Write("</div></div>");
     }
     this.isSectionStarted = false;
     this.sectionHeader    = LocalizedStrings.GetHtmlEncoded(447307630);
     this.sectionId        = "spnSCt";
     this.isFirstLine      = true;
     this.RenderEmailSubsectionData();
     this.RenderPhoneSubsectionData();
     this.RenderPersonalSubsectionData();
     this.isFirstLine = true;
     this.RenderProfileSectionData();
     this.isFirstLine = true;
     this.RenderAddressSectionData();
     this.isFirstLine = true;
     this.RenderSecureMessaging();
     this.isFirstLine = true;
     this.RenderDetailsSectionData();
 }
Example #3
0
 // Token: 0x060027FB RID: 10235 RVA: 0x000E2860 File Offset: 0x000E0A60
 protected void RenderCategories()
 {
     base.SanitizingResponse.Write("<div id=\"divWellCategories\"");
     if (!base.HasCategories)
     {
         base.SanitizingResponse.Write(" style=\"display:none\"");
     }
     base.SanitizingResponse.Write("><div id=\"divFieldCategories\">");
     if (base.Item != null)
     {
         CategorySwatch.RenderCategories(base.OwaContext, base.SanitizingResponse, base.Item);
     }
     base.SanitizingResponse.Write("</div></div>");
 }
 public void ModifyCategories()
 {
     this.ThrowIfWebPartsCannotActAsOwner();
     string[] addCategories    = (string[])base.GetParameter("catAdd");
     string[] removeCategories = (string[])base.GetParameter("catRem");
     using (Item item = this.GetItem())
     {
         CategoryContextMenu.ModifyCategories(item, addCategories, removeCategories);
         MeetingMessage meetingMessage = item as MeetingMessage;
         if (meetingMessage != null)
         {
             CalendarItemBase calendarItemBase = MeetingUtilities.TryGetCorrelatedItem(meetingMessage);
             if (calendarItemBase != null)
             {
                 CategoryContextMenu.ModifyCategories(calendarItemBase, addCategories, removeCategories);
                 Utilities.SaveItem(calendarItemBase);
             }
         }
         Utilities.SaveItem(item, true, SaveMode.FailOnAnyConflict);
         item.Load();
         this.Writer.Write("var sCats = \"");
         StringBuilder stringBuilder = new StringBuilder();
         StringWriter  stringWriter  = new StringWriter(stringBuilder);
         CategorySwatch.RenderCategories(base.OwaContext, stringWriter, item);
         stringWriter.Close();
         Utilities.JavascriptEncode(stringBuilder.ToString(), this.Writer);
         this.Writer.Write("\";");
         this.Writer.Write("a_rgCats = ");
         CategorySwatch.RenderCategoriesJavascriptArray(this.SanitizingWriter, item);
         this.Writer.Write(";");
         this.Writer.Write("a_sId = \"");
         Utilities.JavascriptEncode(Utilities.GetIdAsString(item), this.Writer);
         this.Writer.Write("\";");
         this.Writer.Write("a_sCK = \"");
         Utilities.JavascriptEncode(item.Id.ChangeKeyAsBase64String(), this.Writer);
         this.Writer.Write("\";");
     }
 }
Example #5
0
 protected void RenderCategories()
 {
     CategorySwatch.RenderCategories(base.OwaContext, base.SanitizingResponse, this.post);
 }