/// <summary> /// 取消IP代理 /// </summary> private void CancelProxyIP() { try { ProxyHelper proxy = new ProxyHelper(); proxy.CancelProxy(); MessageBox.Show("取消代理成功!"); } catch { MessageBox.Show("取消代理失败!"); } }
private void Window_Closed_1(object sender, EventArgs e) { AbortAllThread(); if ((bool)IsCancelCheckBox.IsChecked) { try { ProxyHelper proxy = new ProxyHelper(); proxy.CancelProxy(); //MessageBox.Show("取消代理成功!"); } catch { //MessageBox.Show("取消代理失败!"); } } }