private void TimerProxy_Tick(object sender, EventArgs e) { DateTime dt = DateTime.Now; if (dt.Hour >= 9 && dt.Hour < 15) { if (MyProxy.GoodProxyServer.Count <= (Master.Scripts().Count() * 2)) { AddLog("Proxy: Count(" + MyProxy.GoodProxyServer.Count.ToString() + ") < Script"); MyProxy.VerifyProxy(); } else { if (dt.Minute == 10 || dt.Minute == 25 || dt.Minute == 40 || dt.Minute == 55) { AddLog("Proxy: 10,25,40,55 Count(" + MyProxy.GoodProxyServer.Count.ToString() + ")"); MyProxy.GoodProxyServer.Clear(); MyProxy.VerifyProxy(); } } } }
public Form1() { InitializeComponent(); MyProxy.VerifyProxy(); }