| | |
| | | /// </summary> |
| | | Action refreshFunctionRowAction; |
| | | /// <summary> |
| | | /// 回掉更新 |
| | | /// 回调更新 |
| | | /// </summary> |
| | | Action backAction; |
| | | public SceneAddPage(Scene s, Action act) |
| | |
| | | items.Add("60", "1min"); |
| | | items.Add("120", "2min"); |
| | | items.Add("300", "5min"); |
| | | new PublicAssmebly().SetSceneDelayDialog(items, action ,scene.delay); |
| | | new PublicAssmebly().SetSceneDelayDialog( action ,scene.delay); |
| | | |
| | | |
| | | }; |
| | | |
| | | contentView.AddChidren(new Button() |
| | |
| | | |
| | | LoadEventList(); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 加载功能列表 |
| | | /// </summary> |
| | |
| | | }; |
| | | row.AddChidren(btnFunctionFloorAndRoom); |
| | | |
| | | btnFunctionName.MouseUpEventHandler = (sender, e) => |
| | | EventHandler<MouseEventArgs> skipEvent= (sender, e) => |
| | | { |
| | | var ssf = new SceneFunctionInfoEditPage(scene, scenefunction, refreshFunctionRowAction); |
| | | MainPage.BasePageView.AddChidren(ssf); |
| | | ssf.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnFunctionFloorAndRoom.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | var ssf = new SceneFunctionInfoEditPage(scene, scenefunction, refreshFunctionRowAction); |
| | | MainPage.BasePageView.AddChidren(ssf); |
| | | ssf.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | | btnFunctionName.MouseUpEventHandler = skipEvent; |
| | | btnFunctionFloorAndRoom.MouseUpEventHandler = skipEvent; |
| | | |
| | | Button btnDelSceneFunction = new Button() |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建场景 |
| | | /// 完成按钮点击事件 |
| | | /// </summary> |
| | | void LoadEvent_CompleteEvent() |
| | |
| | | var waitPage = new Loading(); |
| | | MainPage.BaseView.AddChidren(waitPage); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | new System.Threading.Thread(() => |
| | | new Thread(() => |
| | | { |
| | | try |
| | | { |