12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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 SwitchUpSmall : UserControl, IPointData
- {
- private string tagId;
- private TsData tagData;
- public SwitchUpSmall()
- {
- InitializeComponent();
- }
- [Browsable(true), Category("Point")]
- public TsData TagData
- {
- get
- {
- return tagData;
- }
- set
- {
- tagData = value;
- if (tagData != null && tagData.booleanValue.HasValue)
- {
- this.pictureBox1.Image = tagData.booleanValue.Value ? global::IntelligentControlForsx.Properties.Resources.kaiguan_He_Xiao_fw : global::IntelligentControlForsx.Properties.Resources.kaiguan_Fen_Xiao_fw;
- //this.label1.Text = tagData.doubleValue.Value.ToString("0.00");
- }
- }
- }
- [Browsable(true), Category("Point")]
- public string TagId
- {
- get
- {
- return tagId;
- }
- set
- {
- tagId = value;
- }
- }
- }
- }
|