| | |
| | | /// <summary>
|
| | | /// 功能的桌布控件
|
| | | /// </summary>
|
| | | private FrameLayout DeviceBodyTableControl = null;
|
| | | private NormalFrameLayout DeviceBodyTableControl = null;
|
| | | /// <summary>
|
| | | /// 场景的列表控件
|
| | | /// </summary>
|
| | |
| | | /// <summary>
|
| | | /// 场景的桌布控件
|
| | | /// </summary>
|
| | | private FrameLayout SceneBodyTableControl = null;
|
| | | private NormalFrameLayout SceneBodyTableControl = null;
|
| | | /// <summary>
|
| | | /// 全选控件
|
| | | /// </summary>
|
| | |
| | | bodyFrameLayout.AddChidren(tabControl);
|
| | |
|
| | | //初始化场景桌布
|
| | | this.SceneBodyTableControl = new FrameLayout(); |
| | | this.SceneBodyTableControl = new NormalFrameLayout(); |
| | | SceneBodyTableControl.Y = tabControl.Bottom; |
| | | SceneBodyTableControl.Height = bodyFrameLayout.Height - tabControl.Bottom; |
| | | bodyFrameLayout.AddChidren(SceneBodyTableControl);
|
| | | //初始化设备桌布
|
| | | this.DeviceBodyTableControl = new FrameLayout(); |
| | | this.DeviceBodyTableControl = new NormalFrameLayout(); |
| | | DeviceBodyTableControl.Y = tabControl.Bottom; |
| | | DeviceBodyTableControl.Height = bodyFrameLayout.Height - tabControl.Bottom; |
| | | bodyFrameLayout.AddChidren(DeviceBodyTableControl); |
| | |
| | | {
|
| | | //场景图片
|
| | | var frameContr = new ScenePictrueControl();
|
| | | listSceneView.AddChidrenFrame(frameContr);
|
| | | listSceneView.AddChidren(frameContr);
|
| | | frameContr.InitControl(data);
|
| | |
|
| | | //添加选择控件
|
| | |
| | | //促使它超过时,能够往上滑
|
| | | var frameTemp = new FrameLayout();
|
| | | frameTemp.Height = Application.GetRealHeight(202 + 23);
|
| | | listSceneView.AddChidrenFrame(frameTemp);
|
| | | listSceneView.AddChidren(frameTemp);
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | btnAdd.TextID = R.MyInternationalizationString.AddTo; |
| | | btnAdd.TextSize = 17; |
| | | btnAdd.Radius = (uint)Application.GetRealHeight(35); |
| | | frameAddBackGroud.AddChidren(btnAdd, ChidrenBindMode.BindEventOnly);
|
| | | frameAddBackGroud.AddChidren(btnAdd, ChidrenBindMode.BindEvent);
|
| | | frameAddBackGroud.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var selectZone = new SelectZone(); |
| | |
| | | HdlThreadLogic.Current.RunMainInThread(() =>
|
| | | {
|
| | | //刷新主页
|
| | | this.LoadFormMethodByName("HomeMainPageForm", "RefreshBodyView");
|
| | | HomeMainPageForm.Instance?.RefreshBodyView();
|
| | | });
|
| | | }
|
| | | base.CloseFormBefore();
|