From c6b35c3138b944830b5336bf610f918154dd47c7 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期六, 12 十月 2019 15:45:10 +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