From 6d73bf6e816570291865674bef8bce8972e4de3f Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期三, 01 十二月 2021 16:32:57 +0800 Subject: [PATCH] 2021-12-01-01 --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs | 18 ++++++++++++++---- 1 files changed, 14 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 ef6ceed..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); @@ -137,6 +146,7 @@ frameLayout.AddChidren(seekBarVol); frameLayout.AddChidren(btn_add); frameLayout.AddChidren(btn_add_click); + btnTitle.Text = titleName; //绗竴涓彉鍖栬褰曢�変腑鍊� int brightnesValue = 0; if (stateValue != "") @@ -144,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