1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using WisdomClient.data;
- namespace IntelligentControlForsx.MyControls
- {
- public partial class HandCartSmall : UserControl, IPointData
- {
- private string tagId;
- private TsData tagData;
- public HandCartSmall()
- {
- InitializeComponent();
- }
- [Browsable(true), Category("Point")]
- public TsData TagData
- {
- get
- {
- return tagData;
- }
- set
- {
- tagData = value;
- if (tagData != null && tagData.booleanValue.HasValue)
- {
- this.BackgroundImage = tagData.booleanValue.Value ? global::IntelligentControlForsx.Properties.Resources.handcart_s1 : global::IntelligentControlForsx.Properties.Resources.handcart_s0;
- }
- }
- }
- [Browsable(true), Category("Point")]
- public string TagId
- {
- get
- {
- return tagId;
- }
- set
- {
- tagId = value;
- }
- }
- }
- }
|