public void LoadProcesses(ChromiumProcess[] chromes) { foreach (ChromiumProcess chrome in chromes) { if (chrome.ParentPid == _process.Pid) { ChromeProcessViewModel viewModel = new ChromeProcessViewModel(_root, chrome); viewModel.LoadProcesses(chromes.ToArray()); _childProcesses.Add(viewModel); } } }
public ChromeProcessViewModel(BuildExplorerViewModel root, ChromiumProcess process) { _root = root; _process = process; _childProcesses = new List<ChromeProcessViewModel>(); _icon = Imaging.CreateBitmapSourceFromHIcon( _process.Icon.Handle, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); }