| | |
| | | this.device = i_device;
|
| | | //设备图标背景控件
|
| | | this.frameIconBackGroud = new FrameLayout();
|
| | | frameIconBackGroud.Height = Application.GetMinRealAverage(112);
|
| | | frameIconBackGroud.Width = Application.GetMinRealAverage(112);
|
| | | frameIconBackGroud.Height = this.GetPictrueRealSize(112);
|
| | | frameIconBackGroud.Width = this.GetPictrueRealSize(112);
|
| | | frameIconBackGroud.Gravity = Gravity.CenterVertical;
|
| | | frameIconBackGroud.X = Application.GetRealWidth(46);
|
| | | frameIconBackGroud.Radius = (uint)Application.GetMinRealAverage(112 / 2);
|
| | | frameIconBackGroud.Radius = (uint)this.GetPictrueRealSize(112 / 2);
|
| | | frameIconBackGroud.BackgroundColor = Common.ZigbeeColor.Current.GXCGrayBackgroundColor;
|
| | | this.frameTable.AddChidren(frameIconBackGroud, ChidrenBindMode.NotBind);
|
| | | if (chidrenYaxis != 0)
|
| | |
| | | var btnEditor = this.AddEditorControl();
|
| | | btnEditor.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //关闭左滑菜单
|
| | | this.HideMenu();
|
| | | var detailInfo = new MainPage.DeviceDetailInfoForm();
|
| | | detailInfo.AddForm(i_device, HdlRoomLogic.Current.CurrentRoom);
|
| | | detailInfo.FormCloseEvent += (curDevice, curRoom) =>
|