public OldData(ClientApplicatie clientapp) { InitializeComponent(); MainClient.SendNetCommand(new NetCommand(NetCommand.RequestType.ALLSESSIONS, MainClient.Session)); this.clientapp = clientapp; timer1.Start(); }
public SelectTest(ComPort com, ClientApplicatie client) { Com = com; int[] t1 = { 50, 100, 150, 150, 100, 50 }; int[] t2 = { 100, 200, 300, 400,200,100,50}; Test test1 = new Test(300,t1,"longTest"); Test test2 = new Test(60, t1,"shortTest"); Test test3 = new Test(20, t1, "very Short Test"); Test test4 = new Test(10, t2, "powerTest"); tests.Add(test1); tests.Add(test2); tests.Add(test3); tests.Add(test4); InitializeComponent(); listBox_Tests.DataSource = tests; timer1.Stop(); this.clientApplicatie = client; }
public SelectTest(ComPort com, ClientApplicatie client) { Com = com; int[] t1 = { 50, 100, 150, 150, 100, 50 }; int[] t2 = { 100, 200, 300, 400, 200, 100, 50 }; Test test1 = new Test(300, t1, "longTest"); Test test2 = new Test(60, t1, "shortTest"); Test test3 = new Test(20, t1, "very Short Test"); Test test4 = new Test(10, t2, "powerTest"); tests.Add(test1); tests.Add(test2); tests.Add(test3); tests.Add(test4); InitializeComponent(); listBox_Tests.DataSource = tests; timer1.Stop(); this.clientApplicatie = client; }
public ErgometerTest(int weight, int length, int age, char gender, ClientApplicatie client) { this.weight = weight; this.length = length; this.age = age; this.gender = gender; currentstate = state.WARMUP; MainClient.SwitchTestModeAudio(); deviation = 0; failed = false; this.client = client; client.updateStepsText("U begint nu aan een warmup, probeer een tempo van 50 rpm aan te houden. De test gaat automatisch verder."); workloads = new List <Workload>(); MainClient.ComPort.Write("PW 25"); MainClient.ComPort.Read(); currentPower = 25; MainClient.Client.heartBeat.max = (int)CalculateMaximumHeartRate(); }
public PanelLogin(ClientApplicatie app) : base() { this.app = app; this.pictureBoxBike = new System.Windows.Forms.PictureBox(); this.buttonLogin = new System.Windows.Forms.Button(); this.textBoxPassword = new System.Windows.Forms.TextBox(); this.textBoxUsername = new System.Windows.Forms.TextBox(); this.lblLoginTitle = new System.Windows.Forms.Label(); this.lblUsername = new System.Windows.Forms.Label(); this.lblPassword = new System.Windows.Forms.Label(); this.lblVerification = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBike)).BeginInit(); // // panelLogin // this.Controls.Add(this.pictureBoxBike); this.Controls.Add(this.buttonLogin); this.Controls.Add(this.textBoxUsername); this.Controls.Add(this.textBoxPassword); this.Controls.Add(this.lblLoginTitle); this.Controls.Add(this.lblUsername); this.Controls.Add(this.lblPassword); this.Controls.Add(this.lblVerification); this.Dock = System.Windows.Forms.DockStyle.Fill; this.Location = new System.Drawing.Point(0, 0); this.Name = "panelLogin"; this.Size = new System.Drawing.Size(800, 600); this.TabIndex = 0; // // pictureBoxBike // this.pictureBoxBike.Anchor = System.Windows.Forms.AnchorStyles.None; this.pictureBoxBike.Image = global::ErgometerApplication.Properties.Resources.flatbike; this.pictureBoxBike.Location = new System.Drawing.Point(137, 131); this.pictureBoxBike.Name = "pictureBoxBike"; this.pictureBoxBike.Size = new System.Drawing.Size(250, 250); this.pictureBoxBike.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBoxBike.TabIndex = 4; this.pictureBoxBike.TabStop = false; // // buttonLogin // this.buttonLogin.Anchor = System.Windows.Forms.AnchorStyles.None; this.buttonLogin.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonLogin.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonLogin.Location = new System.Drawing.Point(468, 338); this.buttonLogin.Name = "buttonLogin"; this.buttonLogin.Size = new System.Drawing.Size(168, 31); this.buttonLogin.TabIndex = 3; this.buttonLogin.Text = "Aanmelden"; this.buttonLogin.UseVisualStyleBackColor = true; this.buttonLogin.Click += new System.EventHandler(this.buttonLogin_Click); // // textBoxPassword // this.textBoxPassword.Anchor = System.Windows.Forms.AnchorStyles.None; this.textBoxPassword.Location = new System.Drawing.Point(467, 287); this.textBoxPassword.MaxLength = 16; this.textBoxPassword.Name = "textBoxPassword"; this.textBoxPassword.PasswordChar = '*'; this.textBoxPassword.Size = new System.Drawing.Size(167, 20); this.textBoxPassword.TabIndex = 2; this.textBoxPassword.KeyDown += TextBoxPassword_KeyDown; // // textBoxUsername // this.textBoxUsername.Anchor = System.Windows.Forms.AnchorStyles.None; this.textBoxUsername.Location = new System.Drawing.Point(468, 231); this.textBoxUsername.MaxLength = 16; this.textBoxUsername.Name = "textBoxUsername"; this.textBoxUsername.Size = new System.Drawing.Size(167, 20); this.textBoxUsername.TabIndex = 2; this.textBoxUsername.KeyDown += TextBoxPassword_KeyDown; // // lblLoginTitle // this.lblLoginTitle.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblLoginTitle.AutoSize = true; this.lblLoginTitle.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblLoginTitle.Location = new System.Drawing.Point(461, 141); this.lblLoginTitle.Name = "lblLoginTitle"; this.lblLoginTitle.Size = new System.Drawing.Size(87, 32); this.lblLoginTitle.TabIndex = 1; this.lblLoginTitle.Text = "Log In"; // // lblVerification // this.lblVerification.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblVerification.AutoSize = true; this.lblVerification.Font = new System.Drawing.Font("Segoe UI Light", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblVerification.Location = new System.Drawing.Point(140, 415); this.lblVerification.Name = "lvlVerification"; this.lblVerification.Size = new System.Drawing.Size(200, 21); this.lblVerification.TabIndex = 1; this.lblVerification.Text = "Verification label"; this.lblVerification.Visible = false; // // lblUsername // this.lblUsername.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblUsername.AutoSize = true; this.lblUsername.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblUsername.Location = new System.Drawing.Point(464, 207); this.lblUsername.Name = "lblUsername"; this.lblUsername.Size = new System.Drawing.Size(128, 21); this.lblUsername.TabIndex = 1; this.lblUsername.Text = "Gebruikersnaam"; // // lblPassword // this.lblPassword.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblPassword.AutoSize = true; this.lblPassword.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold); this.lblPassword.Location = new System.Drawing.Point(464, 263); this.lblPassword.Name = "lblPassword"; this.lblPassword.Size = new System.Drawing.Size(103, 21); this.lblPassword.TabIndex = 0; this.lblPassword.Text = "Wachtwoord"; ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBike)).EndInit(); }
public static void Init(ClientApplicatie client) { Client = client; }
public TestDialog(SelectTest testform, ClientApplicatie client) { InitializeComponent(); this.testform = testform; this.clientapp = client; }
public PanelGatherInfo(ClientApplicatie app) : base() { this.app = app; this.pictureBoxBike = new System.Windows.Forms.PictureBox(); this.buttonStart = new System.Windows.Forms.Button(); this.textBoxLeeftijd = new System.Windows.Forms.TextBox(); this.textBoxLengte = new System.Windows.Forms.TextBox(); this.textBoxGewicht = new TextBox(); this.comboBoxGeslacht = new ComboBox(); this.lblInfoTitel = new System.Windows.Forms.Label(); this.lblGeslacht = new System.Windows.Forms.Label(); this.lblGewicht = new System.Windows.Forms.Label(); this.lblLeeftijd = new System.Windows.Forms.Label(); this.lblLengte = new Label(); this.lblFeedback = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBike)).BeginInit(); // // panelLogin // this.Controls.Add(this.pictureBoxBike); this.Controls.Add(this.buttonStart); this.Controls.Add(this.comboBoxGeslacht); this.Controls.Add(this.textBoxGewicht); this.Controls.Add(this.textBoxLengte); this.Controls.Add(this.textBoxLeeftijd); this.Controls.Add(this.lblInfoTitel); this.Controls.Add(this.lblGeslacht); this.Controls.Add(this.lblGewicht); this.Controls.Add(this.lblLeeftijd); this.Controls.Add(this.lblFeedback); this.Controls.Add(this.lblLengte); this.Dock = System.Windows.Forms.DockStyle.Fill; this.Location = new System.Drawing.Point(0, 0); this.Name = "panelLogin"; this.Size = new System.Drawing.Size(800, 600); this.TabIndex = 0; Random rand = new Random(); // // pictureBoxBike // this.pictureBoxBike.Anchor = System.Windows.Forms.AnchorStyles.None; this.pictureBoxBike.Image = global::ErgometerApplication.Properties.Resources.flatbike; this.pictureBoxBike.Location = new System.Drawing.Point(137, 131); this.pictureBoxBike.Name = "pictureBoxBike"; this.pictureBoxBike.Size = new System.Drawing.Size(250, 250); this.pictureBoxBike.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBoxBike.TabIndex = 10; this.pictureBoxBike.TabStop = false; // // buttonLogin // this.buttonStart.Anchor = System.Windows.Forms.AnchorStyles.None; this.buttonStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonStart.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonStart.Location = new System.Drawing.Point(468, 420); this.buttonStart.Name = "buttonStart"; this.buttonStart.Size = new System.Drawing.Size(168, 31); this.buttonStart.TabIndex = 5; this.buttonStart.Text = "Start Test"; this.buttonStart.UseVisualStyleBackColor = true; this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click); // // textBoxPassword // this.textBoxLeeftijd.Anchor = System.Windows.Forms.AnchorStyles.None; this.textBoxLeeftijd.Location = new System.Drawing.Point(467, 270); this.textBoxLeeftijd.MaxLength = 16; this.textBoxLeeftijd.Name = "textBoxLeeftijd"; 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 // this.textBoxGewicht.Anchor = System.Windows.Forms.AnchorStyles.None; this.textBoxGewicht.Location = new System.Drawing.Point(467, 390); this.textBoxGewicht.MaxLength = 16; this.textBoxGewicht.Name = "textBoxGewicht"; this.textBoxGewicht.Size = new System.Drawing.Size(167, 20); this.textBoxGewicht.TabIndex = 4; this.textBoxGewicht.KeyDown += TextBox_KeyDown; this.textBoxGewicht.Text = rand.Next(50, 120) + ""; // // textBoxUsername // this.textBoxLengte.Anchor = System.Windows.Forms.AnchorStyles.None; this.textBoxLengte.Location = new System.Drawing.Point(468, 330); this.textBoxLengte.MaxLength = 16; this.textBoxLengte.Name = "textBoxLengte"; this.textBoxLengte.Size = new System.Drawing.Size(167, 20); this.textBoxLengte.TabIndex = 3; this.textBoxLengte.KeyDown += TextBox_KeyDown; this.textBoxLengte.Text = rand.Next(150, 210) + ""; // // comboBox // this.comboBoxGeslacht.Anchor = System.Windows.Forms.AnchorStyles.None; this.comboBoxGeslacht.Location = new System.Drawing.Point(468, 210); this.comboBoxGeslacht.MaxLength = 16; this.comboBoxGeslacht.Name = "textBoxLengte"; this.comboBoxGeslacht.Size = new System.Drawing.Size(167, 20); this.comboBoxGeslacht.TabIndex = 1; this.comboBoxGeslacht.Items.AddRange(new object[] { "Man", "Vrouw" }); this.comboBoxGeslacht.SelectedIndex = 0; // // lblLoginTitle // this.lblInfoTitel.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblInfoTitel.AutoSize = true; this.lblInfoTitel.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblInfoTitel.Location = new System.Drawing.Point(461, 141); this.lblInfoTitel.Name = "lblLoginTitle"; this.lblInfoTitel.Size = new System.Drawing.Size(87, 32); this.lblInfoTitel.TabIndex = 10; this.lblInfoTitel.Text = "Vul je gegevens in"; // // lblVerification // this.lblFeedback.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblFeedback.AutoSize = true; this.lblFeedback.Font = new System.Drawing.Font("Segoe UI Light", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblFeedback.Location = new System.Drawing.Point(140, 415); this.lblFeedback.Name = "lvlVerification"; this.lblFeedback.Size = new System.Drawing.Size(200, 21); this.lblFeedback.ForeColor = System.Drawing.Color.Red; this.lblFeedback.TabIndex = 10; this.lblFeedback.Text = ""; // // lblUsername // this.lblGeslacht.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblGeslacht.AutoSize = true; this.lblGeslacht.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblGeslacht.Location = new System.Drawing.Point(464, 180); this.lblGeslacht.Name = "lblUsername"; this.lblGeslacht.Size = new System.Drawing.Size(128, 21); this.lblGeslacht.TabIndex = 10; this.lblGeslacht.Text = "Geslacht"; // // lblUsername // this.lblLeeftijd.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblLeeftijd.AutoSize = true; this.lblLeeftijd.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblLeeftijd.Location = new System.Drawing.Point(464, 240); this.lblLeeftijd.Name = "lblUsername"; this.lblLeeftijd.Size = new System.Drawing.Size(128, 21); this.lblLeeftijd.TabIndex = 10; this.lblLeeftijd.Text = "Leeftijd"; // // lblUsername // this.lblLengte.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblLengte.AutoSize = true; this.lblLengte.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblLengte.Location = new System.Drawing.Point(464, 300); this.lblLengte.Name = "lblLengte"; this.lblLengte.Size = new System.Drawing.Size(128, 21); this.lblLengte.TabIndex = 10; this.lblLengte.Text = "Lengte (cm)"; // // lblPassword // this.lblGewicht.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblGewicht.AutoSize = true; this.lblGewicht.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold); this.lblGewicht.Location = new System.Drawing.Point(464, 360); this.lblGewicht.Name = "lblPassword"; this.lblGewicht.Size = new System.Drawing.Size(103, 21); this.lblGewicht.TabIndex = 10; this.lblGewicht.Text = "Gewicht (kg)"; ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBike)).EndInit(); }