ImageSelection.RenderCategoryOrSourceImages C# (CSharp) Méthode

RenderCategoryOrSourceImages() private static méthode

private static RenderCategoryOrSourceImages ( string type, string>.Dictionary current_selections, Random rnd ) : string
type string
current_selections string>.Dictionary
rnd Random
Résultat string
    private static string RenderCategoryOrSourceImages(string type, Dictionary<string, string> current_selections, Random rnd)
    {
        var sb = new StringBuilder();
        var items = current_selections.Keys.ToList();
        items.Sort(StringComparer.Ordinal);
        foreach (var item in items)
        {
            var rand = rnd.Next(1000000).ToString();
            sb.AppendLine(string.Format("<p class=\"{0}\" style=\"font-size:xx-large\">images for {1} {2}</p>", rand, type, item));
            RenderCurrentSourceOrCategoryImage(current_selections, sb, item, rand);
            sb.Append(String.Format(@"<div>
        <p>
        search for public domain images on <a target=""bingsearch"" href=""http://www.bing.com/images/search?qft=%2Bfilterui%3Alicense-L1&q={0}"">bing</a> or <a target=""googlesearch"" href=""http://google.com/search?tbm=isch&safe=active&tbs=sur:f&as_q={0}"">google</a>
        </p>
        <p>
        then specify your own image URL: <input style=""width:50%"" class=""override"" name=""{0}"" onchange=""url_specified('{1}')"" value="""">
        <img name=""{0}"" class=""override_image"" style=""width:140px;display:none;vertical-align: middle;margin: 20px;"" src="""">
        </p>
        </div>", item, item.Replace("'","\\'")));

        }
        return sb.ToString();
    }