From cc0d80c7d86c6d0167269b3408c4b30c24ce84e9 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 23 三月 2020 16:55:37 +0800
Subject: [PATCH] ???????
---
ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionMainView.cs | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionMainView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionMainView.cs
index 8d6e9e6..448da2e 100755
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionMainView.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionMainView.cs
@@ -101,7 +101,8 @@
Height = Application.GetMinRealAverage(63),
TextColor = ZigbeeColor.Current.GXCTextGrayColor,
SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor,
- TextAlignment=TextAlignment.CenterLeft
+ TextAlignment=TextAlignment.CenterLeft,
+ TextSize=15
};
AddChidren(NameButton);
@@ -156,7 +157,9 @@
Height = Application.GetMinRealAverage(60),
TextColor = ZigbeeColor.Current.GXCTextBlackColor,
SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor,
- TextAlignment=TextAlignment.CenterLeft
+ TextAlignment=TextAlignment.CenterLeft,
+ TextSize=14,
+ IsBold=true
};
AddChidren(StatuButton);
@@ -177,9 +180,10 @@
/// SetStatu
/// </summary>
/// <param name="statu"></param>
- public void SetStatu(bool statu)
+ private void SetStatu(bool statu)
{
NameButton.IsSelected = IconButton.IsSelected = SwitchButton.IsSelected = StatuButton.IsSelected = CardBG.IsSelected = statu;
+ NameButton.IsBold = statu;
}
/// <summary>
@@ -219,5 +223,13 @@
{
CollectButton.IsSelected = collect;
}
+ /// <summary>
+ /// CanControl
+ /// </summary>
+ /// <param name="cmd"></param>
+ public void CanControl(bool cmd)
+ {
+ SwitchButton.Visible = cmd;
+ }
}
}
--
Gitblit v1.8.0