| | |
| | | //TextID = MyInternationalizationString.adddevice, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(150), |
| | | }; |
| | | topFrameLayout.AddChidren (titleName); |
| | | |
| | |
| | | actionsInfo.Add("TaskList", taskListInfo); |
| | | switch (common.Type) |
| | | { |
| | | case DeviceType.ColorDimmableLight: |
| | | case DeviceType.DimmableLight: |
| | | { |
| | | #region ----初始化设备功能数据---- |
| | | //Dictionary<string, string> switchdictionary = new Dictionary<string, string>(); |
| | |
| | | } |
| | | var intvalue = int.Parse(value["Data1"]); |
| | | brightnessdictionary.Add("Data1", intvalue.ToString()); |
| | | var lightbrightnessvalue = (intvalue * 100) / 254 + 1; |
| | | var lightbrightnessvalue = (intvalue * 100) / 254; |
| | | Btnvelue.Text = lightbrightnessvalue.ToString() + "%"; |
| | | horizontalSeekBarVol.Progress = lightbrightnessvalue; |
| | | |