Esempio n. 1
0
 private void VpnNotifyIcon_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         NetConnUtils.ConnectOrDisconnectDefautBaseProxyServerAsync();
     }
     catch (Exception ex)
     {
         Log.ShowError(ex);
     }
 }
Esempio n. 2
0
 private void VpnButton_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Clicks > 1)
     {
         try
         {
             NetConnUtils.ConnectOrDisconnectDefautBaseProxyServerAsync();
         }
         catch (Exception ex)
         {
             Log.ShowError(ex);
         }
     }
 }