コード例 #1
0
        private void RunSearchTask(ISearchEngine currentEngine)
        {
            var result = currentEngine.GetResult(m_imgUrl);

            m_results.Add(result);

            RunProcessingTask(result);

            // If the engine is priority, open its result in the browser
            if (SearchConfig.Config.PriorityEngines.HasFlag(currentEngine.Engine))
            {
                Network.OpenUrl(result.Url);
            }

            //Update();

            // Sort results
            m_results.Sort(CompareResults);

            // Reload console UI
            NConsoleIO.Refresh();
        }