private void button5_Click(object sender, EventArgs e) { if (listaDirectorios.SelectedIndex == -1) { MessageBox.Show(Traducir("Seleccione un directorio.")); return; } GusScriptPath path = listaDirectorios.SelectedItem as GusScriptPath; server.RemovePath(path); serverPaths.Remove(path); RefrescarPaths(); SalvarPaths(); }
private void DetenerTor() { if (torController != null) { torController.Dispose(); torController = null; bridge.RemovePath(bridgePath); bridge.Stop(); bridge = null; } button1.Enabled = true; button2.Enabled = false; button6.Enabled = false; }