Esempio n. 1
0
        private void renderAktuellt(videoCategory category)
        {
            int           counter = 0;
            StringBuilder html    = new StringBuilder();

            html.AppendLine("<h1>Webbvideo</h1>\n");
            html.AppendLine("<ul>\n");
            foreach (videoItem clip in category.videos)
            {
                html.Append(renderClip(clip, false));
                counter++;
                if (counter >= 5)
                {
                    break;
                }
                ;
            }
            html.AppendLine("</ul>\n");
            aktuelltContainer.InnerHtml = html.ToString();
        }
Esempio n. 2
0
        private void renderKF(videoCategory category)
        {
            int           counter = 0;
            StringBuilder html    = new StringBuilder();

            html.AppendLine("<h2>Kommunfullmäktige</h2>\n");
            html.AppendLine("<ul>\n");
            foreach (videoItem clip in category.videos)
            {
                html.Append(renderClip(clip, true));
                counter++;
                if (counter >= 1)
                {
                    break;
                }
                ;
            }
            html.AppendLine("</ul>\n");
            kfContainer.InnerHtml = html.ToString();
        }