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