From b7b3e92bed9c4553e30e2901a1877f088a5f8823 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期一, 04 十一月 2019 17:20:52 +0800 Subject: [PATCH] 2019.11.4 --- ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs index efb483a..c86f41d 100644 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs @@ -23,7 +23,7 @@ /// <summary> /// ZoneBtn /// </summary> - private Button ZoneBtn; + private Button StatuBtn; /// <summary> /// ClickBtn /// </summary> @@ -42,7 +42,7 @@ v_Selected = value; try { - SetStatu(v_Selected); + SetOnLineStatu(v_Selected); } catch { @@ -114,7 +114,7 @@ }; AddChidren(NameBtn); - ZoneBtn = new Button + StatuBtn = new Button { X = Application.GetRealWidth(181), Y = Application.GetRealHeight(72), @@ -123,7 +123,7 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2 }; - AddChidren(ZoneBtn); + AddChidren(StatuBtn); SwitchBtn = new Button() { @@ -176,18 +176,26 @@ /// SetZoneText /// </summary> /// <param name="title"></param> - public void SetZoneText(string title) + public void SetStatuText(string title) { - ZoneBtn.Text = title; + StatuBtn.Text = title; } - /// <summary> /// SetStatu /// </summary> /// <param name="statu"></param> public void SetStatu(bool statu) { - NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = SwitchBtn.IsSelected = statu; + SwitchBtn.IsSelected = statu; + } + + /// <summary> + /// SetStatu + /// </summary> + /// <param name="statu"></param> + public void SetOnLineStatu(bool statu) + { + NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = statu; } /// <summary> @@ -196,7 +204,7 @@ /// <param name="statu"></param> public void HideSwitchBtn(bool statu) { - SwitchBtn.Visible = statu; + SwitchBtn.Visible = !statu; } } } \ No newline at end of file -- Gitblit v1.8.0