From 2ed75b8b337048e5d75e6d9ec8307633134f02fd Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 10 十月 2019 11:33:04 +0800
Subject: [PATCH] 个人中心添加楼层和创建房间,实装二级验证

---
 ZigbeeApp/Shared/Phone/Device/Logic/SetDeviceState.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SetDeviceState.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SetDeviceState.cs
index 7673c10..bd9932d 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/SetDeviceState.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/SetDeviceState.cs
@@ -32,6 +32,8 @@
                 //TextID = MyInternationalizationString.adddevice,
                 TextSize = 17,
                 TextColor = ZigbeeColor.Current.LogicTextBlackColor,
+                TextAlignment = TextAlignment.CenterLeft,
+                X = Application.GetRealWidth(150),
             };
             topFrameLayout.AddChidren (titleName);
 
@@ -107,7 +109,7 @@
             actionsInfo.Add("TaskList", taskListInfo);
             switch (common.Type)
             {
-                case DeviceType.ColorDimmableLight:
+                case DeviceType.DimmableLight:
                     {
                         #region  ----鍒濆鍖栬澶囧姛鑳芥暟鎹�----
                         //Dictionary<string, string> switchdictionary = new Dictionary<string, string>();
@@ -314,7 +316,7 @@
                                     }
                                     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;
 

--
Gitblit v1.8.0