Example #1
0
 private void panel5_Click(object sender, EventArgs e)
 {
     if (cbProxyUpdate.Checked)
     {
         proxyTimer.Enabled  = true;
         GlobalList.proxyUrl = tbProxy.Text;
         proxyTimer.Interval = Convert.ToInt32(nudProxyInterval.Value * 1000);
         proxyTimer.Start();
         AllMechanic.RefreshProxy();
         lbProxy.Text = GlobalList.ProxyList.Count.ToString();
     }
     else
     {
         AllMechanic.RefreshProxy();
     }
 }
Example #2
0
 private void proxyTimer_Tick(object sender, EventArgs e)
 {
     AllMechanic.RefreshProxy();
 }