Example #1
0
 public Form1()
 {
     InitializeComponent();
     tra = null;
     zwemtraining = new List<ZwemTraining>();
     hardlooptraining = new List<HardloopTraining>();
 }
Example #2
0
 public string ToString(Training zwemtraining)
 {
     zwemInfo = "Aantal slagen: " + Slag + " , Aantal meters: " + AantalMeter + " , Indoor: " + Indoor;
     return zwemInfo;
 }
Example #3
0
 public string ToString(Training hardlooptraining)
 {
     hardloopInfo = "Weertype: " + WeerType + "Parcours: " + parcours;
     return hardloopInfo;
 }
Example #4
0
 public string ToString(Training training)
 { 
     trainingInfo = "Tijdstip: " + tijdstip + " , Tijdsduur: " + tijdsduur + " , Intensiteit: " + intensiteit + " , Omschrijving: " + omschrijving;
     return trainingInfo;
 }
Example #5
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         tra = new ZwemTraining(textBox1.Text, checkBox1.Checked, Convert.ToInt32(textBox2.Text));
     }
     if (radioButton2.Checked)
     {
         tra = new HardloopTraining(textBox3.Text);
     }
 }