Exemplo n.º 1
0
        public void UpdateSearchResults(string sortOrder)
        {
            GUIDialogProgress dlg = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS);

            dlg.Reset();
            dlg.SetHeading("Torrents");
            dlg.SetLine(1, "Fetching torrents...");
            dlg.SetPercentage(0);
            dlg.ShowProgressBar(true);
            dlg.StartModal(GUIWindowManager.ActiveWindow);

            _progressDlg = new ProgressUpdater();
            _progressDlg.SetAutoUpdate(1000, 20);

            TorrentEngine.Instance().SearchTorrent(_searchEngine.Name, _searchString, sortOrder, dlg);
        }