| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace ErgometerApplication
- {
- public class PanelClientSteps : Panel
- {
- public Label UitlegText;
- public Label HeaderLabel;
- private string text;
- public PanelClientSteps() : base()
- {
- this.HeaderLabel = new System.Windows.Forms.Label();
- this.UitlegText = new System.Windows.Forms.Label();
- //
- // initialize panel
- //
- this.BackColor = System.Drawing.SystemColors.ControlLightLight;
- this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Controls.Add(this.UitlegText);
- this.Controls.Add(this.HeaderLabel);
- this.Dock = System.Windows.Forms.DockStyle.Top;
- this.Location = new System.Drawing.Point(0, 0);
- this.Name = "PanelClientSteps";
- this.Size = new System.Drawing.Size(284, 150);
- //
- // HeaderLabel
- //
- this.HeaderLabel.AutoSize = true;
- this.HeaderLabel.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.HeaderLabel.Location = new System.Drawing.Point(12, 9);
- this.HeaderLabel.Name = "HeaderLabel";
- this.HeaderLabel.Size = new System.Drawing.Size(105, 21);
- this.HeaderLabel.TabIndex = 0;
- this.HeaderLabel.Text = "Uitleg";
- //
- // UitlegText
- //
- this.UitlegText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)));
- this.UitlegText.AutoSize = true;
- this.UitlegText.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.UitlegText.Location = new System.Drawing.Point(12, 35);
- this.UitlegText.Name = "UitlegText";
- this.UitlegText.Size = new System.Drawing.Size(800, 32);
- this.UitlegText.TabIndex = 2;
- this.UitlegText.Text = text;
- }
- public void setText(string text)
- {
- this.UitlegText.Text = text;
- }
- }
- }
|