Ejemplo n.º 1
0
 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);
     }
   }
 }
Ejemplo n.º 2
0
 public ChromeProcessViewModel(BuildExplorerViewModel root, ChromiumProcess process) {
   _root = root;
   _process = process;
   _childProcesses = new List<ChromeProcessViewModel>();
   _icon = Imaging.CreateBitmapSourceFromHIcon(
       _process.Icon.Handle,
       Int32Rect.Empty,
       BitmapSizeOptions.FromEmptyOptions());
 }