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 PointLabel : UserControl, IPointData { private string tagId; private TsData tagData; public PointLabel() { InitializeComponent(); } public TsData TagData { get { return tagData; } set { tagData = value; if (tagData != null && tagData.doubleValue.HasValue) { this.label1.Text = tagData.doubleValue.Value.ToString("0.00"); } } } public string TagId { get { return tagId; } set { tagId = value; } } } }