From 6eb21769c74cfcd10084f73ff3f212355849a3c7 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 17 五月 2021 15:00:13 +0800
Subject: [PATCH] 2021-5-17-2
---
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
old mode 100755
new mode 100644
index a406a77..da2a973
--- 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