public void Calculate() { TargetedHours.Calculate(); PlannedHours.Calculate(); Percents.BuildPercent(TargetedHours, PlannedHours); if (ExistBufferHours) { CurrentBufferHours = AvailableWorldBufferHours + (SumTargetedHours - SumPlannedHours); } else { CurrentBufferHours = 0; } }
public void Calculate(int[] inputHours) { if (inputHours == null || inputHours.Length < 7) { Debug.Assert(false); return; } for (int i = 0; i < 7; i++) { PlannedHours[i] = inputHours[i]; } PlannedHours.Calculate(); Calculate(); }
public void Calculate(IntArrayTP inputHours) { if (inputHours == null || inputHours.Count != 7) { Debug.Assert(false); return; } for (int i = 0; i < 7; i++) { PlannedHours[i] = inputHours[i]; } PlannedHours.Calculate(); Calculate(); }