From d6fb0646531172f23648441c224cdcccd721b894 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期一, 14 十二月 2020 09:59:01 +0800 Subject: [PATCH] 请合并代码,完成晾衣架最终功能。 --- ZigbeeApp/Shared/Phone/SmartSound/Widget/SoundRowLayout.cs | 66 +++++++++++++++++++++++++++++++++ 1 files changed, 66 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/SmartSound/Widget/SoundRowLayout.cs b/ZigbeeApp/Shared/Phone/SmartSound/Widget/SoundRowLayout.cs new file mode 100755 index 0000000..8569384 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/SmartSound/Widget/SoundRowLayout.cs @@ -0,0 +1,66 @@ +锘縰sing System; +namespace Shared.Phone.UserCenter.SmartSound +{ + public class SoundRowLayout : RowLayoutControl + { + + /// <summary> + /// 閲嶅懡鍚嶆寜閽� + /// </summary> + public NormalViewControl btnRename = null; + /// <summary> + /// 鍒犻櫎鎸夐挳 + /// </summary> + public NormalViewControl btnDelect = null; + /// <summary> + /// 澶囨敞 + /// </summary> + public NormalViewControl btnRemark = null; + /// <summary> + /// 鍥剧墖璺緞 + /// </summary> + public string ImagePath = "SmartSound/SoundIcon.png"; + + /// <summary> + /// 鏅鸿兘闊崇澶囨敞鍚嶇О + /// </summary> + public string Remark = ""; + + + public SoundRowLayout() + { + // this.Height = Application.GetRealHeight(170); + } + + /// <summary> + /// 鍒濆鍖栧唴閮ㄦ帶浠� + /// </summary> + public void InitControl() + { + try + { + //鍥炬爣 + var btnIcon = frameTable.AddLeftIcon(81); + + btnIcon.UnSelectedImagePath = ImagePath; + btnIcon.SelectedImagePath = ImagePath; + + //澶囨敞鍚嶇О鎸夐挳 + btnRemark = frameTable.AddLeftCaption(Remark, 800); + + //搴曠嚎 + frameTable.AddBottomLine(); + + btnRename = base.AddEditorControl(); + btnRename.Text = "閲嶅懡鍚�"; + + btnDelect = base.AddDeleteControl(); + btnDelect.Text = "瑙i櫎缁戝畾"; + } + catch (Exception e) + { + // + } + } + } +} -- Gitblit v1.8.0