예제 #1
0
 public void Download()
 {
     for (int i = 0; i < _maxCount; ++i)
     {
         bool flag = true;
         while (flag)
         {
             try
             {
                 string storePath = _crawler.Download(i);
                 _imagePathList.Add(storePath);
                 flag = false;
                 if (_autoSet && i == 0)
                 {
                     _crawler.SetWallpaper(storePath);
                 }
             }
             catch (WebException)
             {
                 flag = true;
             }
         }
     }
 }
예제 #2
0
 public static void Process()
 {
     bool flag = true;
     while(flag)
     {
         try
         {
             Setting s = new Setting();
             Crawler c = new Crawler(s);
             string storePath = c.Download(0);
             c.SetWallpaper(storePath);
             flag = false;
         }
         catch(WebException)
         {
             flag = true;
         }
     }
 }
예제 #3
0
        public static void Process()
        {
            bool flag = true;

            while (flag)
            {
                try
                {
                    Setting s         = new Setting();
                    Crawler c         = new Crawler(s);
                    string  storePath = c.Download(0);
                    c.SetWallpaper(storePath);
                    flag = false;
                }
                catch (WebException)
                {
                    flag = true;
                }
            }
        }