コード例 #1
0
        public void SetupCharts4Projection(string Username)
        {
            double weightToLoose = MyMethodsLib.KgToLoose(Username, weightBox.Text);
            string slowDays      = MyMethodsLib.DaysToAchieveGoal(weightToLoose.ToString(), 0.1);
            string steadyDays    = MyMethodsLib.DaysToAchieveGoal(weightToLoose.ToString(), 0.2);
            string intenseDays   = MyMethodsLib.DaysToAchieveGoal(weightToLoose.ToString(), 0.3);

            slowModeBox.Text   = slowDays;
            slowWeeksBox.Text  = MyMethodsLib.TimeToAchieveGoal(slowDays, 7);
            slowMonthsBox.Text = MyMethodsLib.TimeToAchieveGoal(slowDays, 30);

            steadyModeBox.Text   = steadyDays;
            steadyWeeksBox.Text  = MyMethodsLib.TimeToAchieveGoal(steadyDays, 7);
            steadyMonthsBox.Text = MyMethodsLib.TimeToAchieveGoal(steadyDays, 30);

            intenseModeBox.Text   = intenseDays;
            intenseWeeksBox.Text  = MyMethodsLib.TimeToAchieveGoal(intenseDays, 7);
            intenseMonthsBox.Text = MyMethodsLib.TimeToAchieveGoal(intenseDays, 30);
        }