Exemplo n.º 1
0
 private void TinyVpnUI_Load(object sender, EventArgs e)
 {
     this.panel1.Enabled = false;
     client = new TinyVpnClient();
     client.ClientException           += client_ClientException;
     client.ClientMassage             += client_ClientMassage;
     client.ConnectionStatusChanged   += client_ConnectionStatusChanged;
     client.ClientDialCompleted       += client_ClientDialCompleted;
     client.ClientInitializeCompleted += client_ClientInitializeCompleted;
     new Thread(delegate()
     {
         client.Initialize();
     }).Start();
 }
Exemplo n.º 2
0
 private void TinyVpnUI_Load(object sender, EventArgs e)
 {
     this.panel1.Enabled = false;
     client = new TinyVpnClient();
     client.ClientException += client_ClientException;
     client.ClientMassage += client_ClientMassage;
     client.ConnectionStatusChanged += client_ConnectionStatusChanged;
     client.ClientDialCompleted += client_ClientDialCompleted;
     client.ClientInitializeCompleted += client_ClientInitializeCompleted;
     new Thread(delegate()
     {
         client.Initialize();
     }).Start();
 }