Ejemplo n.º 1
0
 public SettingsDialog(Settings mainSettings)
 {
     InitializeComponent();
     settings = mainSettings;
     minLength.SelectedIndex = settings.MinLength;
     numThreads.SelectedIndex = settings.NumThreads - 1;
     maxLinks.Text = settings.MaxLinks.ToString();
     useStopWords.Checked = settings.UseStopWords;
 }
Ejemplo n.º 2
0
 public SiteScanner(Settings settings)
     : base(settings)
 {
     scannedLinks = new List<string>();
     inProgress = new List<string>();
     maxLinks = settings.MaxLinks;
     int i, minIOC, maxIOC;
     ThreadPool.GetMinThreads(out i, out minIOC);
     ThreadPool.GetMaxThreads(out i, out maxIOC);
     ThreadPool.SetMinThreads(settings.NumThreads, minIOC);
     ThreadPool.SetMaxThreads(settings.NumThreads, maxIOC);
     resLock = new Object();
 }
Ejemplo n.º 3
0
 public MainController()
 {
     settings = new Settings(3, 4, 1000, true);
     filterSettings = new FilterSettings(ListSortDirection.Descending, 5);
     index = null;
 }
 public DocumentScanner(Settings settings)
     : base(settings)
 {
 }