RightLabels.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace ProjectBase.Controls
  11. {
  12. public partial class RightLabels : UserControl
  13. {
  14. public RightLabels()
  15. {
  16. InitializeComponent();
  17. }
  18. private void RightLabels_FontChanged(object sender, EventArgs e)
  19. {
  20. foreach (Control control in tableLayoutPanel1.Controls)
  21. {
  22. control.Font = this.Font;
  23. }
  24. }
  25. [Browsable(true)]
  26. public string Com_Name
  27. {
  28. get { return label1.Text; }
  29. set { label1.Text = value; }
  30. }
  31. [Browsable(true)]
  32. public string Torque_Value
  33. {
  34. get { return label4.Text; }
  35. set { label4.Text = value; }
  36. }
  37. [Browsable(true)]
  38. public string Angle_Value
  39. {
  40. get { return label5.Text; }
  41. set { label5.Text = value; }
  42. }
  43. [Browsable(true)]
  44. public string LED_Name
  45. {
  46. get { return circleLabel1.Text; }
  47. set { circleLabel1.Text = value; }
  48. }
  49. [Browsable(true)]
  50. public LedState WorkState
  51. {
  52. get { return circleLabel1.WorkState; }
  53. set { circleLabel1.WorkState = value; }
  54. }
  55. }
  56. }