Exemple #1
0
 private void indexingDone()
 {
     this.indexingIsRunning = false;
     this.currentIndexWindow.Close();
     this.currentIndexWindow.Dispose();
     this.currentIndexWindow = null;
 }
Exemple #2
0
        private void ButtonIndexClick(object sender, EventArgs e)
        {
            lock (this.locking)
            {
                if (this.indexingIsRunning)
                {
                    return;
                }

                this.currentIndexWindow = new IndexWindow();
                this.currentIndexWindow.Show(this);

                this.indexer = Task.Factory.StartNew(() => OceanSearchManager.INSTANCE.IndexNow(new string[] { this.workingDirectory }, progressUpdate), TaskCreationOptions.LongRunning);
                this.indexer.GetAwaiter().OnCompleted(this.indexingDone);
                this.indexingIsRunning = true;
            }
        }
 private void indexingDone()
 {
     this.indexingIsRunning = false;
     this.currentIndexWindow.Close();
     this.currentIndexWindow.Dispose();
     this.currentIndexWindow = null;
 }
        private void ButtonIndexClick(object sender, EventArgs e)
        {
            lock(this.locking)
            {
                if(this.indexingIsRunning)
                {
                    return;
                }

                this.currentIndexWindow = new IndexWindow();
                this.currentIndexWindow.Show(this);

                this.indexer = Task.Factory.StartNew(() => OceanSearchManager.INSTANCE.IndexNow(new string[] { this.workingDirectory }, progressUpdate), TaskCreationOptions.LongRunning);
                this.indexer.GetAwaiter().OnCompleted(this.indexingDone);
                this.indexingIsRunning = true;
            }
        }