handcart _f.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. using WisdomClient.data;
  11. namespace IntelligentControlForsx.MyControls
  12. {
  13. public partial class HandCart_f : UserControl, IPointData
  14. {
  15. private string tagId;
  16. private TsData tagData;
  17. public HandCart_f()
  18. {
  19. InitializeComponent();
  20. }
  21. [Browsable(true), Category("Point")]
  22. public TsData TagData
  23. {
  24. get
  25. {
  26. return tagData;
  27. }
  28. set
  29. {
  30. tagData = value;
  31. if (tagData != null && tagData.booleanValue.HasValue)
  32. {
  33. this.BackgroundImage = tagData.booleanValue.Value
  34. ? global::IntelligentControlForsx.Properties.Resources.handcart0
  35. : global::IntelligentControlForsx.Properties.Resources.handcart1;
  36. }
  37. }
  38. }
  39. [Browsable(true), Category("Point")]
  40. public string TagId
  41. {
  42. get
  43. {
  44. return tagId;
  45. }
  46. set
  47. {
  48. tagId = value;
  49. }
  50. }
  51. private void HandCart_Load(object sender, EventArgs e)
  52. {
  53. }
  54. }
  55. }