From c1de48884fa145a16a0f8bcee93274dcfaa0ff82 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 07 五月 2020 10:40:28 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-2020xm --- ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs | 50 +++++++++++++++++++++++++------------------------- 1 files changed, 25 insertions(+), 25 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs index 569d187..6e9b3c9 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs @@ -98,7 +98,7 @@ #endregion - #region 鈻� 灞忓箷浜害绾у埆_______________________ + #region 鈻� 灞忓箷浜害绾у埆_______________________ /// <summary> /// 娣诲姞灞忓箷浜害绾у埆鎺т欢 /// </summary> @@ -281,17 +281,17 @@ btnLevelView.Y = Application.GetRealHeight(54); btnLevelView.Gravity = Gravity.CenterVertical; btnLevelView.TextID = R.MyInternationalizationString.BackgroundLightColor; - frameBack.AddChidren(btnLevelView); - + frameBack.AddChidren(btnLevelView); + var frameColor = new FrameLayoutStatuControl(); frameColor.UseClickStatu = false; frameColor.Width = Application.GetRealHeight(262); frameColor.Height = this.GetPictrueRealSize(79); frameColor.Gravity = Gravity.CenterVertical; frameColor.X = frameBack.Width - ControlCommonResourse.XXLeft - Application.GetRealHeight(262); - frameBack.AddChidren(frameColor); - - //棰滆壊 + frameBack.AddChidren(frameColor); + + //棰滆壊 var btnColorView = new NormalViewControl(Application.GetRealHeight(110), this.GetPictrueRealSize(49), false); btnColorView.Gravity = Gravity.CenterVertical; btnColorView.TextAlignment = TextAlignment.CenterRight; @@ -299,14 +299,14 @@ btnColorView.Y = Application.GetRealHeight(5); btnColorView.TextColor = UserCenterColor.Current.TextGrayColor1; btnColorView.TextID = R.MyInternationalizationString.uColor; - frameColor.AddChidren(btnColorView, ChidrenBindMode.BindEventOnly); - + frameColor.AddChidren(btnColorView, ChidrenBindMode.BindEventOnly); + int R1 = Convert.ToInt32(this.keyColorData.OpenColorR, 16); int G1 = Convert.ToInt32(this.keyColorData.OpenColorG, 16); int B1 = Convert.ToInt32(this.keyColorData.OpenColorB, 16); uint backColor = this.GetColorByRGB((byte)R1, (byte)G1, (byte)B1); - //棰滆壊澶栨 + //棰滆壊澶栨 var btnColorLine = new FrameLayoutStatuControl(); btnColorLine.Width = Application.GetRealHeight(79); btnColorLine.Height = this.GetPictrueRealSize(79); @@ -314,14 +314,14 @@ btnColorLine.Radius = (uint)this.GetPictrueRealSize(79) / 2; btnColorLine.BorderWidth = 1; btnColorLine.BorderColor = 0xffcccccc; - frameColor.AddChidren(btnColorLine, ChidrenBindMode.BindEventOnly); - + frameColor.AddChidren(btnColorLine, ChidrenBindMode.BindEventOnly); + var btnColor = new NormalViewControl(this.GetPictrueRealSize(69), this.GetPictrueRealSize(69), false); btnColor.Gravity = Gravity.Center; btnColor.Radius = (uint)this.GetPictrueRealSize(69) / 2; btnColor.BackgroundColor = backColor; - btnColorLine.AddChidren(btnColor, ChidrenBindMode.BindEventOnly); - + btnColorLine.AddChidren(btnColor, ChidrenBindMode.BindEventOnly); + var btnRight = new NormalViewControl(this.GetPictrueRealSize(58), this.GetPictrueRealSize(58), false); btnRight.UnSelectedImagePath = "Item/RightNext.png"; btnRight.Y = Application.GetRealHeight(5); @@ -330,7 +330,7 @@ btnRight.Y += this.GetPictrueRealSize(8); frameColor.ButtonClickEvent += (sender, e) => - { + { var form = new PanelColorSelectForm(); form.AddForm(R1, G1, B1); form.FinishSelectColorEvent += (Rcolor, Gcolor, Bcolor) => @@ -350,7 +350,7 @@ #endregion - #region 鈻� 鑺傝兘妯″紡琛宊________________________ + #region 鈻� 鑺傝兘妯″紡琛宊________________________ /// <summary> /// 娣诲姞鑺傝兘妯″紡琛� /// </summary> @@ -513,18 +513,18 @@ //鍏抽棴杩涘害鏉� this.CloseProgressBar(ShowReLoadMode.YES); return false; - } + } keyColorData = await HdlDevicePanelLogic.Current.GetPanelColorInfo(panelDevice); if (this.keyColorData == null) { //鍏抽棴杩涘害鏉� this.CloseProgressBar(ShowReLoadMode.YES); return false; - } - //鍏抽棴杩涘害鏉� + } + //鍏抽棴杩涘害鏉� this.CloseProgressBar(); - return true; + return true; } #endregion @@ -561,9 +561,9 @@ { this.CloseProgressBar(); return; - } - - //璁剧疆鎸夐敭闈㈡澘棰滆壊鐨勪俊鎭� + } + + //璁剧疆鎸夐敭闈㈡澘棰滆壊鐨勪俊鎭� result = await HdlDevicePanelLogic.Current.SetPanelColorInfo(panelDevice, this.keyColorData); this.CloseProgressBar(); if (result == false) @@ -572,10 +572,10 @@ } //鍏抽棴鑷韩 this.CloseForm(); - } + } #endregion - - #region 鈻� 琛ュ厖瀹瑰櫒___________________________ + + #region 鈻� 琛ュ厖瀹瑰櫒___________________________ /// <summary> /// 琛屾暟瓒呰繃瀹瑰櫒鏃讹紝琛ヤ竴涓┖鐧紽rameLayout锛屼娇涔嬭兘婊戝姩 /// </summary> -- Gitblit v1.8.0