From 18d37e40fbc0fa6beb3fedffef49b3a17f111620 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Sun, 1 Nov 2015 17:26:29 +0100 Subject: [PATCH] Add random value on startup for testing --- ErgometerIPR/ErgometerApplication/PanelGatherInfo.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ErgometerIPR/ErgometerApplication/PanelGatherInfo.cs b/ErgometerIPR/ErgometerApplication/PanelGatherInfo.cs index 5de5eda..525ae28 100644 --- a/ErgometerIPR/ErgometerApplication/PanelGatherInfo.cs +++ b/ErgometerIPR/ErgometerApplication/PanelGatherInfo.cs @@ -59,6 +59,9 @@ namespace ErgometerApplication this.Name = "panelLogin"; this.Size = new System.Drawing.Size(800, 600); this.TabIndex = 0; + + Random rand = new Random(); + // // pictureBoxBike // @@ -93,6 +96,7 @@ namespace ErgometerApplication this.textBoxLeeftijd.Size = new System.Drawing.Size(167, 20); this.textBoxLeeftijd.TabIndex = 2; this.textBoxLeeftijd.KeyDown += TextBox_KeyDown; + this.textBoxLeeftijd.Text = rand.Next(18, 60) + ""; // // textBoxPassword @@ -104,6 +108,7 @@ namespace ErgometerApplication this.textBoxGewicht.Size = new System.Drawing.Size(167, 20); this.textBoxGewicht.TabIndex = 2; this.textBoxGewicht.KeyDown += TextBox_KeyDown; + this.textBoxGewicht.Text = rand.Next(50, 120) + ""; // // textBoxUsername // @@ -114,6 +119,7 @@ namespace ErgometerApplication this.textBoxLengte.Size = new System.Drawing.Size(167, 20); this.textBoxLengte.TabIndex = 2; this.textBoxLengte.KeyDown += TextBox_KeyDown; + this.textBoxLengte.Text = rand.Next(150, 210) + ""; // // comboBox //