lss
2020-06-12 9c16d3614d9b88c637f967518a329f239fcd3aaf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using 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 = "解除绑定";
            }
            catch (Exception e)
            {
                //
            }
        }
    }
}