| | |
| | | /// 删除按钮 |
| | | /// </summary> |
| | | public NormalViewControl btnDelect = null; |
| | | |
| | | /// <summary> |
| | | /// 备注 |
| | | /// </summary> |
| | | public NormalViewControl btnRemark = null; |
| | | /// <summary> |
| | | /// 图片路径 |
| | |
| | | public string ImagePath = "SmartSound/SoundIcon.png"; |
| | | |
| | | /// <summary> |
| | | /// 智能音箱账号 |
| | | /// </summary> |
| | | public string Account = ""; |
| | | /// <summary> |
| | | /// 智能音箱备注 |
| | | /// 智能音箱备注名称 |
| | | /// </summary> |
| | | public string Remark = ""; |
| | | |
| | | |
| | | public SoundRowLayout() |
| | | { |
| | |
| | | /// </summary>
|
| | | public void InitControl() |
| | | { |
| | | //图标 |
| | | var btnIcon = frameTable.AddLeftIcon(81); |
| | | try |
| | | { |
| | | //图标 |
| | | var btnIcon = frameTable.AddLeftIcon(81); |
| | | |
| | | btnIcon.UnSelectedImagePath = ImagePath; |
| | | btnIcon.SelectedImagePath = ImagePath; |
| | | btnIcon.UnSelectedImagePath = ImagePath; |
| | | btnIcon.SelectedImagePath = ImagePath; |
| | | |
| | | //设备 |
| | | var btnAccount = frameTable.AddTopView(Account, 800); |
| | | //房间 |
| | | btnRemark = frameTable.AddBottomView(Remark, 800); |
| | | //底线 |
| | | frameTable.AddBottomLine(); |
| | | //备注名称按钮 |
| | | btnRemark = frameTable.AddLeftCaption(Remark, 800); |
| | | |
| | | btnRename = base.AddEditorControl(); |
| | | btnRename.Text = "重命名"; |
| | | //底线 |
| | | frameTable.AddBottomLine(); |
| | | |
| | | btnDelect = base.AddDeleteControl(); |
| | | btnDelect.Text = "解除绑定"; |
| | | btnRename = base.AddEditorControl(); |
| | | btnRename.Text = "重命名"; |
| | | |
| | | btnDelect = base.AddDeleteControl(); |
| | | btnDelect.Text = "解除绑定"; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | // |
| | | } |
| | | } |
| | | } |
| | | } |