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???", "IP", MessageBoxButtons.YesNo) == DialogResult.Yes) { new Thread(() => { clsDBQueryManager setting = new clsDBQueryManager(); setting.DeletePrivateIPData(); AddToIPsLogs("[ " + DateTime.Now + " ] => [ All Private Proxies Deleted from the DataBase ]"); }).Start(); } } catch (Exception) { } } else { MessageBox.Show("Your Internet Connection is disabled ! or not working, Please Check Your Internet Connection..."); AddToIPsLogs("[ " + DateTime.Now + " ] => [ Your Internet Connection is disabled ! or not working, Please Check Your Internet Connection... ]"); } }