Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (isearcher != null) isearcher.Close();
            isearcher = null;

            folderBrowserDialog1.ShowNewFolderButton = false;
            if (folderBrowserDialog1.ShowDialog() != DialogResult.OK || folderBrowserDialog1.SelectedPath == string.Empty)
            {
                return;

            }
            textBox1.Text = folderBrowserDialog1.SelectedPath;
            Indexer indexer = new Indexer(_indexTarget);
            indexer.UpdateCallback = new IndexerUpdateCallback(this.UpdateIndexingInfo);
            indexer.IndexDirectory(folderBrowserDialog1.SelectedPath);
        }