Commits

Anonymous committed 08f5e70

Get enough favicons to actually take a while

Comments (0)

Files changed (2)

 FaviconBrowser/obj
 FaviconBrowser/bin
 *.suo
+*.user

FaviconBrowser/MainWindow.xaml.cs

-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using System.IO;
-using System.Linq;
 using System.Net;
-using System.Text;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
 using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
 
 namespace FaviconBrowser
 {
     /// </summary>
     public partial class MainWindow : Window
     {
+        private static readonly List<string> s_Domains = new List<string>
+                                                             {
+                                                                 "google.com",
+                                                                 "bing.com",
+                                                                 "oreilly.com",
+                                                                 "simple-talk.com",
+                                                                 "microsoft.com",
+                                                                 "facebook.com",
+                                                                 "twitter.com",
+                                                                 "reddit.com",
+                                                                 "baidu.com",
+                                                                 "bbc.co.uk"
+                                                             };
+
         public MainWindow()
         {
             InitializeComponent();
 
         private void GetButton_OnClick(object sender, RoutedEventArgs e)
         {
-            AddAFavicon("google.com");
+            foreach (string domain in s_Domains)
+            {
+                AddAFavicon(domain);
+            }
         }
 
         private void AddAFavicon(string domain)