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/CommonForm/SelectedStatuButton.cs |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectedStatuButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectedStatuButton.cs
index a536580..a7d91f8 100755
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectedStatuButton.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectedStatuButton.cs
@@ -15,11 +15,14 @@
         /// <summary>
         /// Initializes a new instance of the <see cref="T:Shared.SelectedStatuButton"/> class.
         /// </summary>
-        public SelectedStatuButton()
+        public SelectedStatuButton(uint textColor = 0xFF666666, uint selectedTextColor = 0xFF000000)
         {
             MouseDownEventHandler += Button_MouseDownEvent;
-            SelectedTextColor = ZigbeeColor.Current.GXCTextBlueColor;
+            TextColor = textColor;
+            SelectedTextColor = selectedTextColor;
         }
+
+        
         /// <summary>
         /// 鍗曞嚮鎸変笅锛屽疄鐜扮煭鏆傜偣浜�変腑鏁堟灉
         /// </summary>
@@ -27,13 +30,19 @@
         /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param>
         private void Button_MouseDownEvent(object sender, MouseEventArgs mouseEventArgs)
         {
+            bool statu = IsSelected;
             SetSeletedStatu();
             new System.Threading.Thread(() =>
             {
                 System.Threading.Thread.Sleep(SelectedStatuTime);
                 SetUnSelectedStatu();
+                Application.RunOnMainThread(() =>
+                {
+                    IsSelected = statu;
+                });
             })
             { IsBackground = true }.Start();
+
         }
         /// <summary>
         /// 璁剧疆閫変腑鐘舵��

--
Gitblit v1.8.0