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