| | |
| | | //本地没有存在; |
| | | if (sceneinof == null) |
| | | { |
| | | //在网关查找该场景; |
| | | sceneinof = await Send.GetScene(int.Parse(actions["DeviceAddr"].ToString())); |
| | | //网关没有存在; |
| | | if (sceneinof == null) |
| | | { |
| | | |
| | | //注解:本地和网关都不存在该场景,界面将不会显示该场景; |
| | | //sceneinof = new SceneUI(); |
| | | //移除该场景数据; |
| | | Common.Logic.CurrentLogic.Actions.Remove(actions); |
| | | //移除该场景视图; |
| | | devicesFrameLayout.RemoveFromParent(); |
| | | continue; |
| | | } |
| | | //实现目的:显示出来让可以自己是否删除 |
| | | sceneinof = new SceneUI(); |
| | | #region ----- |
| | | ////在网关查找该场景; |
| | | ////标记问题:网络请求,存在视图加载快慢的问题; |
| | | //sceneinof = await Send.GetScene(int.Parse(actions["DeviceAddr"].ToString())); |
| | | ////网关没有存在; |
| | | //if (sceneinof == null) |
| | | //{ |
| | | // //注解:本地和网关都不存在该场景,界面将不会显示该场景; |
| | | // //sceneinof = new SceneUI(); |
| | | // //移除该场景数据; |
| | | // Common.Logic.CurrentLogic.Actions.Remove(actions); |
| | | // //移除该场景视图; |
| | | // devicesFrameLayout.RemoveFromParent(); |
| | | // continue; |
| | | //} |
| | | #endregion |
| | | } |
| | | |
| | | |