| | |
| | | addSceneView.AddChidren(btnAddSceneText); |
| | | #endregion |
| | | |
| | | #region F3阶段 |
| | | /* |
| | | #region 捕获场景 |
| | | FrameLayout catchSceneView = new FrameLayout() |
| | | { |
| | |
| | | #endregion |
| | | |
| | | |
| | | /* |
| | | #region 电影场景 |
| | | FrameLayout movieSceneView = new FrameLayout() |
| | | { |
| | |
| | | movieSceneView.AddChidren(btnMovieSceneText); |
| | | #endregion |
| | | */ |
| | | #endregion |
| | | |
| | | LoadEventList(); |
| | | } |
| | |
| | | void LoadEventList() |
| | | { |
| | | LoadEvent_SkipAddScenePage(); |
| | | LoadEvent_SkipCatchScenePage(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 跳转创建场景界面 |
| | | /// </summary> |
| | | void LoadEvent_SkipAddScenePage() |
| | | { |
| | | btnAddSceneBg.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | //if (DB_ResidenceData.Instance.CheckWhetherGatewayIdIsNull()) |
| | | //{ |
| | | // new PublicAssmebly().TipMsgAutoClose(Language.StringByID(StringId.UnableToCreateScenarioPleaseBindGateway), true); |
| | | // return; |
| | | //} |
| | | Action backAction = () => { |
| | | this.RemoveFromParent(); |
| | | action(); |
| | |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 跳转捕获场景界面 |
| | | /// </summary> |
| | | void LoadEvent_SkipCatchScenePage() |
| | | { |
| | | btnCatchSceneBg.MouseUpEventHandler = (sener, e) => { |
| | | Action backAction = () => { |
| | | this.RemoveFromParent(); |
| | | action(); |
| | | }; |
| | | var scene = new Scene() { roomIds = new System.Collections.Generic.List<string>() { "" } }; |
| | | scene.NewSid(); |
| | | scene.name = Language.StringByID(StringId.Scene) + " " + (1 + FunctionList.List.scenes.Count).ToString(); |
| | | var aep = new CatchSceneAddPage(scene, backAction); |
| | | MainPage.BasePageView.AddChidren(aep); |
| | | aep.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | | } |
| | | } |