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; } } }
public void InitializeParameter(Setting s, MainWindow mainWindow) { _maxCount = 7; _clickCount = 0; _current = -1; _imagePathList = new List<string>(); _crawler = new Crawler(s); _autoSet = s.AutoSet; _mainWindow = mainWindow; }