Пример #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();
        }
Пример #2
0
 private void timerSearch_Tick(object sender, EventArgs e)
 {
     threadJob.ThreadTimeWork();
     if (threadJob.ThreadCurrentState() == System.Threading.ThreadState.Stopped)
     {
         timerSearch.Stop();
         GUIController.UpdateStopConButtonEnabled(false);
         MessageBox.Show("Поиск завершен");
     }
 }