public ValueDisplayNode(KNXValueDisplay knx) : base(knx) { this.Unit = (EMeasurementUnit)Enum.ToObject(typeof(EMeasurementUnit), knx.Unit); this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxValueDisplayType; this.ReadAddressId = knx.ReadAddressId ?? new Dictionary<string, KNXSelectedAddress>(); }
public ValueDisplayNode(KNXValueDisplay knx) : base(knx) { this.Unit = (EMeasurementUnit)Enum.ToObject(typeof(EMeasurementUnit), knx.Unit); this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxValueDisplayType; this.ReadAddressId = knx.ReadAddressId ?? new Dictionary <string, KNXSelectedAddress>(); }
public ValueDisplayNode() { _index++; this.Text = ResourceMng.GetString("TextValueDisplay") + "_" + _index; this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxValueDisplayType; this.Width = 140; this.Height = 40; //this.Size = new Size(200, 60); this.ReadAddressId = new Dictionary <string, KNXSelectedAddress>(); this.Unit = EMeasurementUnit.Centigrade; }
public ValueDisplayNode() { _index++; this.Text = ResourceMng.GetString("TextValueDisplay") + "_" + _index; this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxValueDisplayType; this.Width = 140; this.Height = 40; //this.Size = new Size(200, 60); this.ReadAddressId = new Dictionary<string, KNXSelectedAddress>(); this.Unit = EMeasurementUnit.Centigrade; }
public DigitalAdjustmentNode(KNXDigitalAdjustment knx) : base(knx) { this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxDigitalAdjustment; this.ReadAddressId = knx.ReadAddressId ?? new Dictionary <string, KNXSelectedAddress>(); this.WriteAddressIds = knx.WriteAddressIds ?? new Dictionary <string, KNXSelectedAddress>(); this.LeftImage = knx.LeftImage; this.RightImage = knx.RightImage; this.DigitalNumber = (KNXDigitalAdjustment.EDigitalNumber)Enum.ToObject(typeof(KNXDigitalAdjustment.EDigitalNumber), knx.DigitalNumber); this.MaxValue = knx.MaxValue; this.MinValue = knx.MinValue; this.Unit = (EMeasurementUnit)Enum.ToObject(typeof(EMeasurementUnit), knx.Unit); }
public AirSensor( string title, EMeasurementUnit measurementUnit, ESensorType sensorType, double thresholdMin, double thresholdMax, double value, EActiveState activeState) { Title = title; MeasurementUnit = measurementUnit; SensorType = sensorType; ThresholdMin = thresholdMin; ThresholdMax = thresholdMax; Value = value; ActiveState = activeState; }
public DigitalAdjustmentNode() { index++; this.Text = ResourceMng.GetString("TextDigitalAdjustment") + index; this.Width = 150; this.Height = 45; //this.Size = new Size(150, 45); this.FlatStyle = EFlatStyle.Stereo; this.FontColor = Color.Yellow;// FrmMainHelp.ColorToHexStr(Color.Yellow); this.FontSize = 28; this.ReadAddressId = new Dictionary <string, KNXSelectedAddress>(); this.WriteAddressIds = new Dictionary <string, KNXSelectedAddress>(); this.LeftImage = "sl_left.png"; this.RightImage = "sl_right.png"; this.DigitalNumber = KNXDigitalAdjustment.EDigitalNumber.TwoDigit; this.MaxValue = 30; this.MinValue = 16; this.Unit = EMeasurementUnit.None; string FileLeftImage = Path.Combine(MyCache.ProjImagePath, this.LeftImage); if (!File.Exists(FileLeftImage)) { File.Copy(Path.Combine(MyCache.ProjectResImgDir, this.LeftImage), FileLeftImage); } string FileRightImage = Path.Combine(MyCache.ProjImagePath, this.RightImage); if (!File.Exists(FileRightImage)) { File.Copy(Path.Combine(MyCache.ProjectResImgDir, this.RightImage), FileRightImage); } Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxDigitalAdjustment; }
public DigitalAdjustmentNode() { index++; this.Text = ResourceMng.GetString("TextDigitalAdjustment") + index; this.Width = 150; this.Height = 45; //this.Size = new Size(150, 45); this.FlatStyle = EFlatStyle.Stereo; this.FontColor = Color.Yellow;// FrmMainHelp.ColorToHexStr(Color.Yellow); this.FontSize = 28; this.ReadAddressId = new Dictionary<string, KNXSelectedAddress>(); this.WriteAddressIds = new Dictionary<string, KNXSelectedAddress>(); this.LeftImage = "sl_left.png"; this.RightImage = "sl_right.png"; this.DigitalNumber = KNXDigitalAdjustment.EDigitalNumber.TwoDigit; this.MaxValue = 30; this.MinValue = 16; this.Unit = EMeasurementUnit.None; string FileLeftImage = Path.Combine(MyCache.ProjImagePath, this.LeftImage); if (!File.Exists(FileLeftImage)) { File.Copy(Path.Combine(MyCache.ProjectResImgDir, this.LeftImage), FileLeftImage); } string FileRightImage = Path.Combine(MyCache.ProjImagePath, this.RightImage); if (!File.Exists(FileRightImage)) { File.Copy(Path.Combine(MyCache.ProjectResImgDir, this.RightImage), FileRightImage); } Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxDigitalAdjustment; }
public DigitalAdjustmentNode(KNXDigitalAdjustment knx) : base(knx) { this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxDigitalAdjustment; this.ReadAddressId = knx.ReadAddressId ?? new Dictionary<string, KNXSelectedAddress>(); this.WriteAddressIds = knx.WriteAddressIds ?? new Dictionary<string, KNXSelectedAddress>(); this.LeftImage = knx.LeftImage; this.RightImage = knx.RightImage; this.DigitalNumber = (KNXDigitalAdjustment.EDigitalNumber)Enum.ToObject(typeof(KNXDigitalAdjustment.EDigitalNumber), knx.DigitalNumber); this.MaxValue = knx.MaxValue; this.MinValue = knx.MinValue; this.Unit = (EMeasurementUnit)Enum.ToObject(typeof(EMeasurementUnit), knx.Unit); }