StationFloatInfo.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Security.RightsManagement;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace IntelligentControlForsx.MyControls
  12. {
  13. public partial class StationFloatInfo : UserControl
  14. {
  15. private string windSpeedOrLightLable;
  16. public string WindSpeedOrLightLable
  17. {
  18. get { return windSpeedOrLightLable; }
  19. set
  20. {
  21. windSpeedOrLightLable = value;
  22. lblSpeedOrLightLable.Text = value;
  23. }
  24. }
  25. private string unitLable;
  26. public string UnitLable
  27. {
  28. get { return unitLable; }
  29. set
  30. {
  31. lblUnit.Text = value;
  32. unitLable = value;
  33. }
  34. }
  35. private string speed;
  36. public string Speed
  37. {
  38. get { return speed; }
  39. set { lblSpeed.Text = value; }
  40. }
  41. private string powerCount;
  42. public string PowerCount
  43. {
  44. get { return powerCount; }
  45. set
  46. {
  47. lblPowerCount.Text = value;
  48. powerCount = value;
  49. }
  50. }
  51. private string power;
  52. public string Power
  53. {
  54. get { return power; }
  55. set
  56. {
  57. lblPower.Text = value;
  58. power = value;
  59. }
  60. }
  61. public StationFloatInfo()
  62. {
  63. InitializeComponent();
  64. }
  65. }
  66. }