public int TotalWeight() { if (ChildProcesses != null) { Carrying = ChildProcesses.Sum(c => c.TotalWeight()); return(Size + Carrying); } else { return(Size); } }
public virtual void AddCmdlineExecution(Process process) { ChildProcesses.Clear(); ChildProcesses.Add(process); process.ParentProcess = this; }