Ejemplo n.º 1
0
        void DefaultRenderCulture(CultureInfo cultureCulture)
        {
            StringBuilder builder = new StringBuilder();

            // Start list item
            builder.Append("<li>");

            // The link
            builder.Append("<a href=\"");
            builder.Append(PropertyBag["SelectionUrl"]);
            builder.Append("\" title=\"");
            builder.Append(Capitalize(cultureCulture.NativeName));
            builder.Append("\">");

            if (_Mode == RenderingMode.NativeNames)
            {
                builder.Append(Capitalize(cultureCulture.NativeName));
            }
            else
            {
                builder.AppendFormat(
                    "<img src=\"{0}\" />",
                    _ResourceHelper.GetImageResourceUrl(GetFlagResourceName(cultureCulture)));
            }

            builder.Append("</a>");

            // End list item
            builder.Append("</li>");

            RenderText(builder.ToString());
        }