// performed when VPN disconnects private void performApplicationAction() { ProcessHandler.closeApps(getApps()); if (UtorrentHandler.IsUtorrentConnected && Properties.Settings.Default.uTorrentControlEnabled) { if (Properties.Settings.Default.uTorrentStop) { UtorrentHandler.StopUtorrent(); } else { UtorrentHandler.PauseUtorrent(); } } }
// performed when VPN connects private void performVpnConnectedApplicationAction() { //Helper.doLog(scrollViewerLog, "performApplicationAction " + nSelection, m_configHandler.DebugMode, m_configHandler.ConsoleMaxSize); if (Properties.Settings.Default.ChosenActionIndex == 0) { ProcessHandler.clearApplicationsList(); } else { ProcessHandler.openApps(); } if (UtorrentHandler.IsUtorrentConnected && Properties.Settings.Default.uTorrentControlEnabled) { if (Properties.Settings.Default.uTorrentStop) { UtorrentHandler.StartUtorrent(); } else { UtorrentHandler.UnpauseUtorrent(); } } }