Exemple #1
0
        //-------------------------------------------------------------------------------------------------------------------------



        // Constructors------------------------------------------------------------------------------------------------------------
        public Cl_Athlete(string nickname, string email, string sex, double weight, double height, DateTime birthday)
        {
            this.nickname = nickname;
            this.email    = email;
            this.sex      = sex;
            this.weight   = weight;
            this.height   = height;
            this.birthday = birthday;
            this.age      = Cl_Athlete.calc_age(birthday);
        }
Exemple #2
0
 public Cl_Athlete(string nickname, string email, string sex, DateTime birthday, double weight, double height, double ffm, double ffmi, double kfa)
 {
     this.nickname = nickname;
     this.email    = email;
     this.sex      = sex;
     this.birthday = birthday;
     this.age      = Cl_Athlete.calc_age(birthday);
     this.weight   = weight;
     this.height   = height;
     this.ffm      = ffm;
     this.ffmi     = ffmi;
     this.kfa      = kfa;
 }
Exemple #3
0
        private void btn_calc_age_Click(object sender, EventArgs e)
        {
            int age = Cl_Athlete.calc_age(mC_birthdate.SelectionRange.Start);

            MessageBox.Show("Digga, du biste " + age + " Jahre alt!");
        }