コード例 #1
0
    protected string GetHtmlTableVoiceThemes()
    {
        List <VoiceTheme> voiceThemes = VoiceService.GetAllVoiceThemes();

        if (voiceThemes.Count > 0)
        {
            var sb = new StringBuilder();
            foreach (var voiceTheme in voiceThemes)
            {
                sb.Append("<div style='border: 1px solid #a9a9a9; width: 99%; margin: 10px'>");
                sb.Append("<table border='0' cellpadding='3px' cellspacing='0' style='width: 100%; height: 10px;'>");

                sb.Append("<tr>");
                sb.Append("<td align='center'>");
                sb.Append(GetHtmlThemeName(voiceTheme));
                sb.Append("</td>");
                sb.Append("</tr>");

                sb.Append("<tr>");
                sb.Append("<td>");
                sb.Append(GetHtmlThemeTable(voiceTheme));
                sb.Append("</td>");
                sb.Append("</tr>");

                sb.Append("</table>");
                sb.Append("</div>");
            }

            return(sb.ToString());
        }

        return("");
    }