private void ReloadProcesses() { if (m_tree.Nodes.Count != 0) { m_processesNode.Nodes.Clear(); } // // Load processes. // using (Native.ProcessEnumeration pe = new Native.ProcessEnumeration()) { Native.ProcessInfo info = new Native.ProcessInfo(); while (pe.NextItem(ref info)) { m_processesNode.Nodes.Add(new ProcessNode(new Process(info))); } } }