Exemple #1
0
        public void SetTargetedHours(IntArrayTP hours)
        {
            if (hours == null || hours.Count != 7)
            {
                Debug.Assert(false);
                return;
            }

            for (int i = 0; i < 7; i++)
            {
                TargetedHours[i] = hours[i];
            }

            TargetedHours.Calculate();
        }
Exemple #2
0
        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();
        }
        public void SetTargetedHours(IntArrayTP hours)
        {
            if (hours == null || hours.Count != 7)
            {
                Debug.Assert(false);
                return;
            }

            for (int i = 0; i < 7; i++)
            {
                TargetedHours[i] = hours[i];
            }

            TargetedHours.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();
        }