| | |
| | | |
| | | |
| | | refreshFunctionRowAction = () => { |
| | | LoadFunctionRow(functionListView); |
| | | LoadFunctionRow(); |
| | | }; |
| | | } |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = scene.delayText |
| | | Text = FunctionList.List.GetDelayText( scene.delay) |
| | | }; |
| | | sceneDelayRow.AddChidren(btnSceneDelayInfo); |
| | | |
| | |
| | | |
| | | btnSceneDelayTitle.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | new PublicAssmebly().SetSceneDelayDialog(scene, btnSceneDelayInfo); |
| | | Action<string> action = (obj) => { |
| | | scene.delay = obj; |
| | | btnSceneDelayInfo.Text = FunctionList.List.GetDelayText(obj); |
| | | }; |
| | | new PublicAssmebly().SetSceneDelayDialog(action,scene.delay); |
| | | }; |
| | | |
| | | contentView.AddChidren(new Button() |
| | |
| | | }; |
| | | contentView.AddChidren(functionListView); |
| | | |
| | | LoadFunctionRow(functionListView); |
| | | LoadFunctionRow(); |
| | | |
| | | Button btnLine1 = new Button() |
| | | { |
| | |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadFunctionRow(); |
| | | waitPage.Hide(); |
| | | }); |
| | | } |
| | |
| | | /// <summary> |
| | | /// 加载功能列表 |
| | | /// </summary> |
| | | void LoadFunctionRow(VerticalScrolViewLayout functionListView) |
| | | void LoadFunctionRow() |
| | | { |
| | | functionListView.RemoveAll(); |
| | | functionListView.Height = Application.GetRealWidth(65 * scene.functions.Count); |
| | |
| | | }; |
| | | row.AddChidren(btnRight); |
| | | |
| | | |
| | | |
| | | var btnFunctionInfo = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(327), |
| | |
| | | |
| | | if (Convert.ToInt32( scenefunction.delay) > 0) |
| | | { |
| | | btnFunctionDelayInfo.Text = Language.StringByID(StringId.Delay) + " " + scenefunction.localFunction.delayText; |
| | | btnFunctionDelayInfo.Text = Language.StringByID(StringId.Delay) + " " + FunctionList.List.GetDelayText(scenefunction.delay); |
| | | } |
| | | else |
| | | { |
| | |
| | | void LoadEvent_ChangeFunctionList() |
| | | { |
| | | btnAddFunctionTitle.MouseUpEventHandler = (sender, e) => { |
| | | var sefp =new SceneFunctionListEditPage(scene,refreshFunctionRowAction); |
| | | var sefp =new SceneFunctionListChoosePage(scene,refreshFunctionRowAction); |
| | | MainPage.BasePageView.AddChidren(sefp); |
| | | sefp.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |