| | |
| | | view.AddChidren(btnZone); |
| | | |
| | | |
| | | Button btnDelayIcon; |
| | | btnDelayIcon = new Button() |
| | | Button btnSettingIcon; |
| | | btnSettingIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(4), |
| | | Y = Application.GetRealWidth(4), |
| | | Height = Application.GetRealWidth(32), |
| | | Width = Application.GetRealWidth(32), |
| | | UnSelectedImagePath = "Public/FuncInfoSetIcon_white.png", |
| | | //UnSelectedImagePath = "FunctionIcon/Scene/DelayIcon.png" |
| | | }; |
| | | view.AddChidren(btnDelayIcon); |
| | | view.AddChidren(btnSettingIcon); |
| | | |
| | | Button btnCollection; |
| | | btnCollection = new Button() |
| | |
| | | function.SaveFunctionData(); |
| | | }; |
| | | LoadEvent_ControlScene(btnCoverd,btnName,btnZone, function); |
| | | |
| | | btnSettingIcon.MouseUpEventHandler = (sender, e) => { |
| | | Action backAction = () => { |
| | | LoadSceneFunctionControlZone(); |
| | | }; |
| | | Action refreshAction = () => { |
| | | btnName.Text = function.name; |
| | | btnZone.Text = function.GetRoomListName(); |
| | | view.BackgroundImagePath = (function as Scene).ImagePath; |
| | | }; |
| | | var aep = new SceneEditPage(function as Scene, backAction); |
| | | MainPage.BasePageView.AddChidren(aep); |
| | | aep.LoadPage(StringId.EditScene, refreshAction); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |