Beispiel #1
0
 private void Stop()
 {
     if (finderThread_ == null)
     {
         return;
     }
     finderThread_.Stop();
     finderThread_ = null;
     SetControlButtonText(kTextStart);
     SetStatusBar("Stopped");
 }
Beispiel #2
0
        private void OnStart(object sender, RoutedEventArgs e)
        {
            if (finderThread_ != null)
            {
                finderThread_.Stop();
                return;
            }
            log_.Text = "";
            SetControlButtonText(kTextStop);

            List <string> directories = new List <string>();

            foreach (var item in directories_.Items)
            {
                directories.Add(item.ToString());
            }
            int file_size_bytes_limit = int.Parse(filesize_.Text) * 1024 * 1024;

            finderThread_ = new FinderThread(this, directories, search_pattern_.Text, file_size_bytes_limit);
            finderThread_.Start();
        }
Beispiel #3
0
 public void OnFinished()
 {
     SetControlButtonText(kTextStart);
     finderThread_ = null;
 }