public override void Add(ComputerProgram cp) { programs.Add(cp); counter++; if (counter == 5) { cp.Start(); counter = 0; } }
public override void Add(ComputerProgram cp) { if (curErrors % errorTimes == 0) { programs.Add(cp); cp.Start(); } else { programs.Add(cp); } curErrors++; }