Beispiel #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            GUIController.UpdateStopConButtonEnabled(true);
            GUIController.UpdateStopConButtonText("Pause");

            threadJob.Start(treeView, txtPath.Text, txtFileName.Text);
            timerSearch.Start();
            SaveSettings();
        }
Beispiel #2
0
 private void btnStopCon_Click(object sender, EventArgs e)
 {
     if (threadJob.ThreadWork())
     {
         threadJob.Continue();
         GUIController.UpdateStopConButtonText("Pause");
         timerSearch.Start();
     }
     else
     {
         threadJob.Stop();
         GUIController.UpdateStopConButtonText("Continue");
         timerSearch.Stop();
     }
 }