| | |
| | | //无操作 |
| | | break; |
| | | case FunctionType.Dimmer: |
| | | case FunctionType.RGB: |
| | | LoadFunctionRow(function.function.Find((obj) => obj.name == "brightness")); |
| | | |
| | | break; |
| | | } |
| | | |
| | |
| | | |
| | | btnConfrim.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | var temp = scene.sceneFunctionList.Find((obj) => obj.sid == function.sid) ; |
| | | var temp = scene.sceneFunctionList.Find((obj) => obj.sid == function.sid); |
| | | if (temp!=null) |
| | | { |
| | | temp = function; |
| | |
| | | } |
| | | refreshAction(); |
| | | this.RemoveFromParent(); |
| | | |
| | | }; |
| | | } |
| | | |
| | |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | contentView.AddChidren(row); |
| | | row.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | |
| | | if (trait.name != "on_off") |
| | | { |
| | | row.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | } |
| | | Button btnBrightnessRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | |
| | | ProgressTextColor = CSS_Color.FirstLevelTitleColor, |
| | | ProgressTextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | MaxValue = 100, |
| | | Progress = trait.value.ToString().Replace("{}", "") == "" ? 0 : (int)trait.value, |
| | | Progress = trait.value.ToString().Replace("{}", "") == "" ? 0 : Convert.ToInt32( trait.value), |
| | | SeekBarPadding = Application.GetRealWidth(20), |
| | | }; |
| | | optionBaseView.AddChidren(controlBar); |
| | | |