예제 #1
0
        private void CalculateCPM()
        {
            int    index    = ActivityComboBox.SelectedIndex;
            double activity = activityTab[index];

            ushort cPM = Calculators.CPMCalculator((ushort)HeightNumericUpDown.Value, (double)WeightNumericUpDown.Value, (byte)AgeNumericUpDown.Value,
                                                   SexComboBox.Text, activity, ReductionCheckBox.Checked);

            CPMValueLabel.Text = cPM.ToString("F0");
        }