Exemplo n.º 1
0
        // ********************************************************************************
        /// <summary>
        ///
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        /// <created>UPh,31.10.2015</created>
        /// <changed>UPh,31.10.2015</changed>
        // ********************************************************************************
        private string MakeHTML(TermInfo info)
        {
            TermInfoHTMLBuilder hb = new TermInfoHTMLBuilder();

            hb.AppendHeader();

            hb.AppendProperties(info.Props);

            foreach (TermInfo.LangSet langset in info.LanguageSets)
            {
                hb.AppendLanguage(langset.Language.DisplayName);

                hb.AppendProperties(langset.Props);


                foreach (TermInfo.Term term in langset.Terms)
                {
                    int iTerm = _Terms.Count;
                    _Terms.Add(term.Text);


                    hb.AppendTerm(term.Text, iTerm);
                    hb.AppendProperties(term.Props);
                }
            }

            hb.AppendFooter();

            return(hb.ToString());
        }
Exemplo n.º 2
0
        // ********************************************************************************
        /// <summary>
        /// 
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        /// <created>UPh,31.10.2015</created>
        /// <changed>UPh,31.10.2015</changed>
        // ********************************************************************************
        private string MakeHTML(TermInfo info)
        {
            TermInfoHTMLBuilder hb = new TermInfoHTMLBuilder();

            hb.AppendHeader();

            hb.AppendProperties(info.Props);

            foreach (TermInfo.LangSet langset in info.LanguageSets)
            {
                hb.AppendLanguage(langset.Language.DisplayName);

                hb.AppendProperties(langset.Props);

                foreach (TermInfo.Term term in langset.Terms)
                {
                    int iTerm = _Terms.Count;
                    _Terms.Add(term.Text);

                    hb.AppendTerm(term.Text, iTerm);
                    hb.AppendProperties(term.Props);
                }
            }

            hb.AppendFooter();

            return hb.ToString();
        }