コード例 #1
0
 /// <summary>
 /// Search through the collection of suggestions for a match
 /// </summary>
 /// <param name="Input"></param>
 /// <returns></returns>
 private string FindSuggestion(string Input)
 {
     if (Input != "")
     {
         foreach (string Suggestion in Suggestions)
         {
             if (Suggestion.StartsWith(Input))
             {
                 return(Suggestion);
             }
         }
     }
     return(null);
 }