File was renamed from HDL_ON/UI/UI2/3-Intelligence/SceneEditPage.cs |
| | |
| | | #endregion |
| | | |
| | | #region 场景延时row |
| | | FrameLayout sceneDelayRow = new FrameLayout() |
| | | if (DB_ResidenceData.residenceData.GatewayType == 1) |
| | | { |
| | | Y = sceneNameView.Bottom, |
| | | Height = Application.GetRealWidth(50), |
| | | }; |
| | | contentView.AddChidren(sceneDelayRow); |
| | | FrameLayout sceneDelayRow = new FrameLayout() |
| | | { |
| | | Y = sceneNameView.Bottom, |
| | | Height = Application.GetRealWidth(50), |
| | | }; |
| | | contentView.AddChidren(sceneDelayRow); |
| | | |
| | | Button btnSceneDelayRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | sceneDelayRow.AddChidren(btnSceneDelayRight); |
| | | Button btnSceneDelayRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | sceneDelayRow.AddChidren(btnSceneDelayRight); |
| | | |
| | | var btnSceneDelayInfo = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(327), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = scene.delayText |
| | | }; |
| | | sceneDelayRow.AddChidren(btnSceneDelayInfo); |
| | | var btnSceneDelayInfo = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(327), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = scene.delayText |
| | | }; |
| | | sceneDelayRow.AddChidren(btnSceneDelayInfo); |
| | | |
| | | Button btnSceneDelayTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | //Width = Application.GetRealWidth(90), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.SceneDelay, |
| | | }; |
| | | sceneDelayRow.AddChidren(btnSceneDelayTitle); |
| | | Button btnSceneDelayTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | //Width = Application.GetRealWidth(90), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.SceneDelay, |
| | | }; |
| | | sceneDelayRow.AddChidren(btnSceneDelayTitle); |
| | | |
| | | |
| | | btnSceneDelayTitle.MouseUpEventHandler = (sender, e) => { |
| | | new PublicAssmebly().SetSceneDelayDialog(scene, btnSceneDelayInfo); |
| | | }; |
| | | btnSceneDelayTitle.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | new PublicAssmebly().SetSceneDelayDialog(scene, btnSceneDelayInfo); |
| | | }; |
| | | |
| | | contentView.AddChidren(new Button() |
| | | { |
| | | Y = sceneDelayRow.Bottom, |
| | | Height = Application.GetRealHeight(8), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }); |
| | | |
| | | |
| | | contentView.AddChidren(new Button() |
| | | { |
| | | Y = sceneDelayRow.Bottom, |
| | | Height = Application.GetRealHeight(8), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }); |
| | | } |
| | | #endregion |
| | | |
| | | #region 添加功能row |
| | |
| | | |
| | | Button btnLine1 = new Button() |
| | | { |
| | | Y = sceneDelayRow.Bottom, |
| | | //Y = sceneDelayRow.Bottom, |
| | | Height = Application.GetRealHeight(8), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }; |
| | |
| | | |
| | | Button btnLine2 = new Button() |
| | | { |
| | | Y = sceneDelayRow.Bottom, |
| | | //Y = sceneDelayRow.Bottom, |
| | | Height = Application.GetRealHeight(228), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }; |
| | |
| | | switch (sceneFunction.functionType) |
| | | { |
| | | case FunctionType.AC: |
| | | var addAC = sceneFunction as AC; |
| | | sceneFunctionInfo += addAC.trait_mode.GetCurValueText(); |
| | | sceneFunctionInfo += " " + addAC.trait_temp.value.ToString() + addAC.tempUnitString; |
| | | sceneFunctionInfo += " " + addAC.trait_fan.GetCurValueText(); |
| | | sceneFunctionInfo += sceneFunction.function.Find((obj) => obj.name == "mode").GetCurValueText(); |
| | | sceneFunctionInfo += " " + sceneFunction.function.Find((obj) => obj.name == "set_temperature").value.ToString() + |
| | | sceneFunction.function.Find((obj) => obj.name == "set_temperature").uintString; |
| | | sceneFunctionInfo += sceneFunction.function.Find((obj) => obj.name == "fan").GetCurValueText(); |
| | | break; |
| | | case FunctionType.FloorHeating: |
| | | sceneFunctionInfo += sceneFunction.function.Find((obj) => obj.name == "mode").GetCurValueText(); |
| | | sceneFunctionInfo += " " + sceneFunction.function.Find((obj) => obj.name == "temperature").value.ToString() + |
| | | sceneFunction.function.Find((obj) => obj.name == "temperature").uintString; |
| | | sceneFunctionInfo += " " + sceneFunction.function.Find((obj) => obj.name == "set_temperature").value.ToString() + |
| | | sceneFunction.function.Find((obj) => obj.name == "set_temperature").uintString; |
| | | break; |
| | | case FunctionType.Dimmer: |
| | | perTrait = sceneFunction.function.Find((obj) => obj.name == "brightness"); |