private void utorrentEnabled_Checked(object sender, RoutedEventArgs e) { if (!m_bIsInitCompleted) { return; } UtorrentHandler.SetupUtorrentConnection(); }
public MainWindow() { InitializeComponent(); init(); UpdateChecker.checkForNewerVersion(updateNotifier); // temporary workaround... will come up with something better if (Properties.Settings.Default.uTorrentControlEnabled) { UtorrentHandler.SetupUtorrentConnection(); } }
// 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(); } } }