void sinkUpdateUX(cdeP prop) { if (prop.Name == "StateSensorValueName") { ValueField?.SetUXProperty(Guid.Empty, $"Title={TheThing.GetSafePropertyString(MyBaseThing, "StateSensorValueName")}"); } if (prop.Name == "StateSensorMaxValue" || prop.Name == "StateSensorMinValue" || prop.Name == "StateSensorSteps") { LiveChartFld?.SetUXProperty(Guid.Empty, $"MaxValue={TheThing.GetSafePropertyString(MyBaseThing, "StateSensorMaxValue")}:;:MinValue={TheThing.GetSafePropertyString(MyBaseThing, "StateSensorMinValue")}"); GaugeFld?.SetUXProperty(Guid.Empty, $"MaxValue={TheThing.GetSafePropertyString(MyBaseThing, "StateSensorMaxValue")}:;:MinValue={TheThing.GetSafePropertyString(MyBaseThing, "StateSensorMinValue")}"); if (mBucket != null) { mBucket = new TheBucketChart <T>((int)TheThing.GetSafePropertyNumber(MyBaseThing, "StateSensorMinValue"), (int)TheThing.GetSafePropertyNumber(MyBaseThing, "StateSensorMaxValue"), (int)TheThing.GetSafePropertyNumber(MyBaseThing, "StateSensorSteps"), true); BucketChartFld?.SetUXProperty(Guid.Empty, $"XAxis={{ \"categories\": {mBucket.GetBuckets()} }}"); TheThing.SetSafePropertyString(MyBaseThing, "BucketChart", mBucket.GetBucketArray()); } } }
public TheSensorHistorian(TheThing sender, TheBucketChart pBucket, string propertyName, TimeSpan pSamplePeriod) : base(sender, pBucket, propertyName, pSamplePeriod) { }
public TheSensorHistorian(TheThing sender, TheBucketChart pBucket) : base(sender, pBucket) { }