public void AddNumberedWidget (Tile tile) { tile.PrimaryText = String.Format ("{0}. {1}", i++, tile.PrimaryText); AddWidget (tile); }
private Widget RenderSimilarArtist(XmlNode node) { Tile artist_tile = new Tile(); artist_tile.Pixbuf = RenderImage(node.SelectSingleNode("image_small").InnerText); artist_tile.PrimaryText = node.SelectSingleNode("name").InnerText.Trim(); // translators: 25% similarity artist_tile.SecondaryText = String.Format(Catalog.GetString("{0}% similarity"), node.SelectSingleNode("match").InnerText); artist_tile.Clicked += delegate { Gnome.Url.Show(node.SelectSingleNode ("url").InnerText); }; return artist_tile; }