void ValidatePath() { string searchPath = GetSearchPath(); btnSearch.Enabled = !string.IsNullOrEmpty(searchPath) && Directory.Exists(searchPath); }