private void btnSearch_Click(object sender, EventArgs e) { GUIController.UpdateStopConButtonEnabled(true); GUIController.UpdateStopConButtonText("Pause"); threadJob.Start(treeView, txtPath.Text, txtFileName.Text); timerSearch.Start(); SaveSettings(); }
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(); } }