Esempio n. 1
0
        }//end method

        /// <summary>
        /// Sets the maximum calories for the day. Must be a minimum of 1000.
        /// If below minimum, a safe default will be set.
        /// </summary>
        /// <param name="calories"></param>
        public void SetCalorieGoal(int calories)
        {
            if (calorieGoal > GoalSettings.MINIMUM_CALORIES)
            {
                this.calorieGoal = calories;
            }
            else
            {
                this.calorieGoal = GoalSettings.CalorieGoal();
            }
        }//end method