//public static Process[] getProcessByName(String processName) {
 //    return Process.GetProcessesByName(processName);
 //}
 /// <summary>
 /// This returns the single process whose processID is equal to the savedWindow passed in.
 /// </summary>
 /// <param name="window"></param>
 /// <returns></returns>
 public static Process getProcessByWindowId(CurrentProgram window)
 {
     if (window.PointerId != 0)
     {
         return Process.GetProcessById(window.PointerId);
     }
     else
     { return null; }
 }
        public static List<CurrentProgram> Get_Processes()
        {
            IEnumerable<Process> currentProcesses;
            var savedProcesses = new List<CurrentProgram>();

            currentProcesses = filterUsableProcesses();
            //TODO: redesign this area with linq, cause I think we can return an Ienumerable of saved windowds faster
            foreach (Process proc in currentProcesses)
            {
                var window = new CurrentProgram(proc);
                savedProcesses.Add(window);
            }
            return savedProcesses;
        }