Esempio n. 1
0
 private void Form1_Load(object sender, EventArgs e)
 {
   this.rasPhoneBook1.Open(true);
   this.IsConnected = (this.rasDialer1.GetActiveConnections().Count != 0);
   if (this.userSettings.Connections != null)
     this.ActiveConnection = this.userSettings.Connections.SingleOrDefault(c => c.DefaultConnection == true);
   this.statusItem.Enabled = this.IsConnected;
   notifyIcon1.Visible = true;
   this.Visible = false;
 }
Esempio n. 2
0
 private void frm_ActiveConnectionChanged(object sender, VpnLaunchEventArgs e)
 {
   this.ActiveConnection = e.ActiveConnection;
 }