Example #1
0
        public static List <string> AutoList(string input, ExtTextBoxAutoComplete t)
        {
            Process[] pa = Process.GetProcesses();

            List <string> res = (from e in pa where e.ProcessName.StartsWith(input, StringComparison.InvariantCultureIgnoreCase) select e.ProcessName).ToList();

            return(res);
        }
Example #2
0
        public static void AutoList(string input, ExtTextBoxAutoComplete t, SortedSet <string> set)
        {
            Process[] pa  = Process.GetProcesses();
            var       res = (from e in pa where e.ProcessName.StartsWith(input, StringComparison.InvariantCultureIgnoreCase) select e.ProcessName);

            foreach (var r in res)
            {
                set.Add(r);
            }
        }