PanelClientSteps.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7. namespace ErgometerApplication
  8. {
  9. public class PanelClientSteps : Panel
  10. {
  11. public Label UitlegText;
  12. public Label HeaderLabel;
  13. private string text;
  14. public PanelClientSteps() : base()
  15. {
  16. this.HeaderLabel = new System.Windows.Forms.Label();
  17. this.UitlegText = new System.Windows.Forms.Label();
  18. //
  19. // initialize panel
  20. //
  21. this.BackColor = System.Drawing.SystemColors.ControlLightLight;
  22. this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  23. this.Controls.Add(this.UitlegText);
  24. this.Controls.Add(this.HeaderLabel);
  25. this.Dock = System.Windows.Forms.DockStyle.Top;
  26. this.Location = new System.Drawing.Point(0, 0);
  27. this.Name = "PanelClientSteps";
  28. this.Size = new System.Drawing.Size(284, 150);
  29. //
  30. // HeaderLabel
  31. //
  32. this.HeaderLabel.AutoSize = true;
  33. this.HeaderLabel.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  34. this.HeaderLabel.Location = new System.Drawing.Point(12, 9);
  35. this.HeaderLabel.Name = "HeaderLabel";
  36. this.HeaderLabel.Size = new System.Drawing.Size(105, 21);
  37. this.HeaderLabel.TabIndex = 0;
  38. this.HeaderLabel.Text = "Uitleg";
  39. //
  40. // UitlegText
  41. //
  42. this.UitlegText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)));
  43. this.UitlegText.AutoSize = true;
  44. this.UitlegText.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  45. this.UitlegText.Location = new System.Drawing.Point(12, 35);
  46. this.UitlegText.Name = "UitlegText";
  47. this.UitlegText.Size = new System.Drawing.Size(800, 32);
  48. this.UitlegText.TabIndex = 2;
  49. this.UitlegText.Text = text;
  50. }
  51. public void setText(string text)
  52. {
  53. this.UitlegText.Text = text;
  54. }
  55. }
  56. }