LabelInfo.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace IntelligentControlForsx.MyControls.windturbine
  11. {
  12. public partial class LabelInfo : UserControl
  13. {
  14. public LabelInfo()
  15. {
  16. InitializeComponent();
  17. }
  18. private string valueString;
  19. public string ValueString
  20. {
  21. set
  22. {
  23. valueString = value;
  24. wlValue.LableText = value;
  25. }
  26. get { return valueString; }
  27. }
  28. /// <summary>
  29. /// 绑定数据
  30. /// </summary>
  31. /// <param name="windturbineId">风机编号</param>
  32. /// <param name="unifromCode">统一编码</param>
  33. /// <param name="pointValue">测点值</param>
  34. /// <param name="name">测点名称(含义)</param>
  35. public void BindData(string windturbineId, string unifromCode, string pointValue, string name)
  36. {
  37. wlValue.BindData(pointValue, "windturbine", windturbineId, unifromCode, name);
  38. }
  39. }
  40. }