lss
2020-05-29 cc1012b077a91793c0edd6001cdf019e6bd9a57d
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
using System;
namespace Shared.Phone.UserCenter.SmartSound
{
    public class SoundRowLayout : RowLayoutControl
    {
 
        /// <summary>
        /// 重命名按钮
        /// </summary>
        public NormalViewControl btnRename = null;
        /// <summary>
        /// 删除按钮
        /// </summary>
        public NormalViewControl btnDelect = null;
 
        public NormalViewControl btnRemark = null;
        /// <summary>
        /// 图片路径
        /// </summary>
        public string ImagePath = "SmartSound/SoundIcon.png";
 
        /// <summary>
        /// 智能音箱账号
        /// </summary>
        public string Account = "";
        /// <summary>
        /// 智能音箱备注
        /// </summary>
        public string Remark = "";
 
        public SoundRowLayout()
        {
            // this.Height = Application.GetRealHeight(170);
        }
 
        /// <summary>
        /// 初始化内部控件
        /// </summary>
        public void InitControl()
        {
            //图标
            var btnIcon = frameTable.AddLeftIcon(81);
 
            btnIcon.UnSelectedImagePath = ImagePath;
            btnIcon.SelectedImagePath = ImagePath;
 
            //设备           
            var btnAccount = frameTable.AddTopView(Account, 800);
            //房间
            btnRemark = frameTable.AddBottomView(Remark, 800);
            //底线
            frameTable.AddBottomLine();
 
            btnRename = base.AddEditorControl();
            btnRename.Text = "重命名";
 
            btnDelect = base.AddDeleteControl();
            btnDelect.Text = "解除绑定";
 
        }
    }
}