internal static bool HasThreadsOrBelow(WindowCache wc, MainForm mf, Process process, bool visibleOnly) { if (mf.DisplayThreads) { if (process == null) { return(true); // there must be at least the thread executing this code :) } if (visibleOnly) { foreach (ProcessThread pt in process.Threads) { if (wc.IsThreadVisible(pt)) { return(true); } } return(false); } return(process.Threads.Count > 0); } else { return(WindowData.HasWindowsOrBelow(wc, mf, process, null, visibleOnly)); } }
internal override bool HasChildren(WindowCache wc, bool visibleOnly) { return(WindowData.HasWindowsOrBelow(wc, mf, process, thread, visibleOnly)); }