Example #1
0
        private List <AcronymItem> Acronyms(int id)
        {
            List <AcronymItem> items    = new List <AcronymItem>();
            List <EntityDTO>   acronyms = entityData.GetAcronyms(id);

            if (acronyms.Count > 0)
            {
                foreach (EntityDTO related in acronyms)
                {
                    AcronymItem ac = new AcronymItem();
                    related.ExtractProperties();

                    ac.Acronym     = related.RenderAsPopupLink();
                    ac.Description =
                        related.RenderHTML(
                            GlobalStringResource.AbbreviationDescription,
                            RenderOption.Break);
                    items.Add(ac);
                }
            }
            return(items);
        }
        private List<AcronymItem> Acronyms(int id)
        {
            List<AcronymItem> items = new List<AcronymItem>();
            List<EntityDTO> acronyms = entityData.GetAcronyms(id);
            if (acronyms.Count > 0)
            {
                foreach (EntityDTO related in acronyms)
                {
                    AcronymItem ac = new AcronymItem();
                    related.ExtractProperties();

                    ac.Acronym = related.RenderAsPopupLink();
                    ac.Description =
                        related.RenderHTML(
                        GlobalStringResource.AbbreviationDescription,
                        RenderOption.Break);
                    items.Add(ac);
                }
            }
            return items;
        }