From 35c4bc03ee8da50317cd3f33e9f52f0a4259affd Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 23 十二月 2020 15:53:08 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/WJC' into NewFilePath

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs
index a406a77..da2a973 100755
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs
@@ -122,12 +122,17 @@
         /// <summary>
         /// View鐨勬柟娉�
         /// </summary>
-        /// <param name="fLayout">鐖舵帶浠�</param>
+        /// <param name="frame">鐖舵帶浠�</param>
         /// <param name="titleName">鏍囬鍚嶇О</param>
         /// <param name="stateValue">涔嬪墠鐘舵�佸��</param>
         /// <param name="action">杩斿洖鍥炶皟</param>
-        public void FLayoutView(FrameLayout fLayout, string titleName,string stateValue, Action<string> action)
+        public void FLayoutView(FrameLayout frame, string titleName,string stateValue, Action<string> action)
         {
+            FrameLayout fLayout = new FrameLayout
+            {
+                BackgroundColor = CSS.CSS_Color.viewTrans60lucence,
+            };
+            frame.AddChidren(fLayout);
             fLayout.AddChidren(frameLayout);
             frameLayout.AddChidren(btnTitle);
             frameLayout.AddChidren(btnCancel);
@@ -145,8 +150,8 @@
                 try
                 {
                     //杩涙潵鐨勭姸鎬�
-                    brightnesValue = int.Parse(stateValue);
-                    seekBarVol.Progress = int.Parse(stateValue);
+                    brightnesValue = int.Parse(stateValue.Replace("%", ""));
+                    seekBarVol.Progress = brightnesValue;
                 }
                 catch { }
             }

--
Gitblit v1.8.0