| | |
| | | /// </summary>
|
| | | private void InitAddTargetControl()
|
| | | {
|
| | | if (this.frameTargetTableControl == null)
|
| | | if (this.frameTargetTableControl == null || this.frameTargetTableControl.Parent == null)
|
| | | {
|
| | | //添加目标的的容器控件
|
| | | this.frameTargetTableControl = new FrameListControl();
|
| | |
| | | {
|
| | | //从网关获取场景的执行目标
|
| | | var result = await this.GetSceneTargetList();
|
| | | //添加【执行目标行】
|
| | | this.AddTargetRow();
|
| | | if (result == true)
|
| | | {
|
| | | //添加【执行目标行】
|
| | | this.AddTargetRow();
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | return true;
|
| | | }
|
| | |
|
| | | //打开进度条
|
| | | this.ShowProgressBar();
|
| | | //获取执行目标列表
|
| | |
| | | //那个特殊的控件
|
| | | this.frameBottomTemp = new FrameLayout();
|
| | | frameBottomTemp.Height = bodyFrameLayout.Height - btnTemp.Yaxis + Application.GetRealHeight(23);
|
| | | this.listBodyControl.AddChidrenFrame(frameBottomTemp);
|
| | | this.listBodyControl.AddChidren(frameBottomTemp);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | this.editorScene.IconPath = this.cloneScene.IconPath;
|
| | | this.editorScene.Save();
|
| | |
|
| | | //新建场景,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //调用回调函数
|
| | |
| | | //变更房间
|
| | | HdlSceneLogic.Current.ChangedSceneRoom(this.editorScene, this.nowRoomId);
|
| | | }
|
| | | else
|
| | | {
|
| | | //移除出房间
|
| | | var room = HdlRoomLogic.Current.GetRoomBySceneId(this.editorScene.Id);
|
| | | if (room != null)
|
| | | {
|
| | | HdlSceneLogic.Current.DeleteSceneFromRoom(room, this.editorScene);
|
| | | }
|
| | | }
|
| | |
|
| | | //图片改变了
|
| | | if (isScenePictrueChanged == true)
|
| | |
| | | this.editorScene.IconPath = this.cloneScene.IconPath;
|
| | | this.editorScene.Save();
|
| | |
|
| | | //编辑场景,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //调用回调函数
|