Exemplo n.º 1
0
 private void utorrentEnabled_Checked(object sender, RoutedEventArgs e)
 {
     if (!m_bIsInitCompleted)
     {
         return;
     }
     UtorrentHandler.SetupUtorrentConnection();
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            init();
            UpdateChecker.checkForNewerVersion(updateNotifier);

            // temporary workaround... will come up with something better
            if (Properties.Settings.Default.uTorrentControlEnabled)
            {
                UtorrentHandler.SetupUtorrentConnection();
            }
        }
Exemplo n.º 3
0
        // 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();
                }
            }
        }
Exemplo n.º 4
0
        // 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();
                }
            }
        }