Example #1
0
 public string[] GetAutoComplete(string p)
 {
     if (!AutoCompleteStrings.ContainsKey(p))
     {
         AutoCompleteStrings.Add(p, new List <string>());
     }
     AutoCompleteStrings[p].Sort();
     return(AutoCompleteStrings[p].ToArray());
 }
Example #2
0
 public void AddAutoComplete(string p, string p_2)
 {
     if (!AutoCompleteStrings.ContainsKey(p))
     {
         AutoCompleteStrings.Add(p, new List <string>());
     }
     if (!AutoCompleteStrings[p].Contains(p_2))
     {
         AutoCompleteStrings[p].Add(p_2);
     }
 }