Esempio n. 1
0
        }//end method

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