Esempio n. 1
0
        }//end method

        /// <summary>
        /// Sets the maximum carbs for the day. Must be above 0.
        /// If below 0, a safe default will be set.
        /// </summary>
        /// <param name="carbs"></param>
        public void SetCarbsGoal(int carbs)
        {
            if (carbsGoal > GoalSettings.MINIMUM_NUTRIENT_VALUE)
            {
                this.carbsGoal = carbs;
            }
            else
            {
                this.carbsGoal = GoalSettings.CarbGoal();
            }
        }//end method