From 3aa397ab145382935492b11c1f18c9634e69910b Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 10 十二月 2020 16:45:00 +0800 Subject: [PATCH] 请合并,门锁和晾衣架第一版代码 --- ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs | 36 +++++++++++++++--------------------- 1 files changed, 15 insertions(+), 21 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs b/ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs index 304eb74..ddf78a0 100755 --- a/ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs +++ b/ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs @@ -357,7 +357,7 @@ /// </summary> private NormalViewControl btnName = null; - private IconViewControl Right_icon = null; + private MostRightIconControl Right_icon = null; /// <summary> @@ -380,14 +380,11 @@ //鏄剧ず鏂囨湰 btnName = this.AddLeftCaption(string.Empty, 700); btnName.Height = Application.GetRealHeight(60); - btnName.TextSize = 17; + btnName.TextSize = 14; btnName.Y = Application.GetRealHeight(57); btnName.Text = scene.SceneName; - Right_icon = this.AddRightArrow(); - Right_icon.Width = Application.GetRealWidth(115); - Right_icon.Height = Application.GetRealHeight(115); + Right_icon = this.AddMostRightEmptyIcon(58, 58); Right_icon.Gravity = Gravity.CenterVertical; - Right_icon.X = Right_icon.X - Application.GetRealWidth(60); this.ButtonClickEvent += (sender, e) => { @@ -406,13 +403,13 @@ { if (bol) { - Right_icon.SelectedImagePath = "SmartSound/CheckBoxSel.png"; - Right_icon.UnSelectedImagePath = "SmartSound/CheckBoxSel.png"; + Right_icon.SelectedImagePath = "Item/ItemSelected.png"; + Right_icon.UnSelectedImagePath = "Item/ItemSelected.png"; } else { - Right_icon.SelectedImagePath = "SmartSound/CheckBoxDef.png"; - Right_icon.UnSelectedImagePath = "SmartSound/CheckBoxDef.png"; + Right_icon.SelectedImagePath = "Item/ItemUnSelected.png"; + Right_icon.UnSelectedImagePath = "Item/ItemUnSelected.png"; } } catch (Exception e) @@ -439,7 +436,7 @@ /// </summary> private NormalViewControl btnName = null; - private IconViewControl Right_icon = null; + private MostRightIconControl Right_icon = null; /// <summary> @@ -462,14 +459,11 @@ //鏄剧ず鏂囨湰 btnName = this.AddLeftCaption(string.Empty, 700); btnName.Height = Application.GetRealHeight(60); - btnName.TextSize = 17; + btnName.TextSize = 14; btnName.Y = Application.GetRealHeight(57); btnName.Text = device.DeviceName; - Right_icon = this.AddRightArrow(); - Right_icon.Width = Application.GetRealWidth(115); - Right_icon.Height = Application.GetRealHeight(115); + Right_icon = this.AddMostRightEmptyIcon(58, 58); Right_icon.Gravity = Gravity.CenterVertical; - Right_icon.X = Right_icon.X - Application.GetRealWidth(60); this.ButtonClickEvent += (sender, e) => { @@ -488,14 +482,14 @@ { if (bol) { - Right_icon.SelectedImagePath = "SmartSound/CheckBoxSel.png"; - Right_icon.UnSelectedImagePath = "SmartSound/CheckBoxSel.png"; + Right_icon.SelectedImagePath = "Item/ItemSelected.png"; + Right_icon.UnSelectedImagePath = "Item/ItemSelected.png"; } else { - Right_icon.SelectedImagePath = "SmartSound/CheckBoxDef.png"; - Right_icon.UnSelectedImagePath = "SmartSound/CheckBoxDef.png"; - } + Right_icon.SelectedImagePath = "Item/ItemUnSelected.png"; + Right_icon.UnSelectedImagePath = "Item/ItemUnSelected.png"; + } } catch (Exception e) { -- Gitblit v1.8.0