DocSearch.RecentTerms C# (CSharp) Method

RecentTerms() static private method

static private RecentTerms ( ) : void
return void
	void RecentTerms(){
		if(searchedTerms.Count > 0){
			GUILayout.Button("",bevelLineStyle);
			showRecent = EditorGUILayout.Foldout(showRecent,"Recent Searches");	
			if(showRecent){
				termsScroller = EditorGUILayout.BeginScrollView(termsScroller);
				termID = GUILayout.SelectionGrid(termID,searchedTerms.ToArray(),1);
				EditorGUILayout.EndScrollView();
				GUILayout.Button("",bevelLineStyle);
				if(GUILayout.Button("Clear Recent Searches")){
					searchedTerms = new List<string>();
					File.Delete(Application.dataPath + historyFile);
					AssetDatabase.Refresh();
				}
				EditorGUILayout.Space();
				if(termID != -1){
					string term = searchedTerms.ToArray()[termID];
					searchedTerms.RemoveAt(termID);
					PerformSearch(term);
					termID = -1;
				}
			}
		}	
	}