예제 #1
0
 private void btnClearPrivateProxies_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Do you really want to delete all the Private Proxies from Database???", "Proxy", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         clsDBQueryManager setting = new clsDBQueryManager();
         setting.DeletePrivateProxyData();
         AddToProxysLogs("All Private Proxies Deleted from the DataBase");
     }
 }
예제 #2
0
        private void btnClearPrivateProxies_Click(object sender, EventArgs e)
        {
            CheckNetConn = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();

            if (CheckNetConn)
            {
                try
                {
                    if (MessageBox.Show("Do you really want to delete all the Private Proxies from Database???", "Proxy", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {
                        clsDBQueryManager setting = new clsDBQueryManager();
                        setting.DeletePrivateProxyData();
                        workingproxiesCount = 0;
                        AddToProxysLogs("[ " + DateTime.Now + " ] => [ All Private Proxies Deleted from the DataBase ]");
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine("Error >>> " + ex.StackTrace);
                }
            }
            else
            {
                MessageBox.Show("Your Internet Connection is disabled ! or not working, Please Check Your Internet Connection...");
                AddToProxysLogs("[ " + DateTime.Now + " ] => [ Your Internet Connection is disabled ! or not working, Please Check Your Internet Connection... ]");
            }
        }