From 3db5c3218f405795dc9a2d0f6afdde8ab8ac9e73 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 23 十一月 2021 09:11:30 +0800
Subject: [PATCH] Merge branch 'WJC' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into WJC
---
HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs | 17 +++++++++++++----
1 files changed, 13 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..2bcf99d
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs
@@ -93,6 +93,10 @@
ProgressTextColor = CSS.CSS_Color.textColor,
ProgressTextSize = 10,//鏄剧ず鐧惧垎姣斿瓧浣撳ぇ灏�
SeekBarViewHeight = Application.GetRealHeight(8),//杩涘害鏉$殑楂樺害
+ MinValue=5,//浜у搧缁忕悊鏅撹緣瑕佹眰鏀圭殑 2021-11-06
+ MaxValue=100,
+ Progress=5,//浜у搧缁忕悊鏅撹緣瑕佹眰鏀圭殑 2021-11-06
+
};
/// <summary>
/// 鍥炬爣+
@@ -122,12 +126,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 +154,8 @@
try
{
//杩涙潵鐨勭姸鎬�
- brightnesValue = int.Parse(stateValue);
- seekBarVol.Progress = int.Parse(stateValue);
+ brightnesValue = int.Parse(stateValue.Replace("%", ""));
+ seekBarVol.Progress = brightnesValue;
}
catch { }
}
--
Gitblit v1.8.0