Esempio n. 1
0
        }//end method

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