示例#1
0
        /// <summary>
        /// Cancel the comparison process
        /// </summary>
        public void Cancel()
        {
            _log.Debug("CompareWorker.Cancel called");
            _cancelled = true;
            IWorker comparer = _tableComparer;

            if (comparer != null)
            {
                comparer.Cancel();
            }
        }
示例#2
0
 private void cmdSearch_Click(object sender, EventArgs e)
 {
     if (txtPath.TextLength == 0)
     {
         this.ShowMessageBox(StringResources.SelectFolderMessage, StringResources.AppName, icon: MessageBoxIcon.Exclamation);
         return;
     }
     if (cmdSearch.Text == StringResources.MoveMovieCommandText)
     {
         var worker = (IMoveMovieWorker)_worker;
         worker.AnalyzePath    = folderBrowser.SelectedPath;
         worker.FileExtensions = Settings.Default.MovieExtensions.Cast <string>().ToList();
         worker.RunWorker();
         cmdSearch.Text = StringResources.StopText;
     }
     else
     {
         _worker.Cancel();
         cmdSearch.Enabled = false;
     }
 }