コード例 #1
0
ファイル: TinyVpnUI.cs プロジェクト: cnucky/vpn.51sync
 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();
 }
コード例 #2
0
ファイル: TinyVpnUI.cs プロジェクト: qibinghua/vpn.51sync
 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();
 }