private void InitBridge() { if (sevpnbridge.Status.ToString() == "Stopped") { try { sevpnbridge.Start(); ServicesCond.vpnServ = true; } catch { MessageBox.Show("Could not start bridge process", "Process failed", MessageBoxButtons.OK, MessageBoxIcon.Error); sevpnbridge.Close(); } } _checkforLocalbridge(); if (!Data.bridgeExists) { LocalBridgeForm Lpf = new LocalBridgeForm(); Lpf.Show(); } return; }
private void LocalBridgeChangeLabel_CheckedChanged(object sender, EventArgs e) { LocalBridgeForm Lpf = new LocalBridgeForm(); Lpf.Show(); Hide(); Dispose(); }