예제 #1
0
        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();
                    }
                }
            }
        }
예제 #2
0
 public Form1()
 {
     InitializeComponent();
     MyProxy.VerifyProxy();
 }