| | |
| | | Tag = function.sid + "_Switch", |
| | | }; |
| | | bodyDiv.AddChidren(btnSwitch); |
| | | //加载开关按钮事件 |
| | | LoadEvent_SwitchFunction(btnSwitch,function.attributes.Find((obj)=> obj.key == FunctionAttributeKey.FadeTime )); |
| | | } |
| | | else |
| | | { |
| | |
| | | Tag = function.sid + "_Switch", |
| | | }; |
| | | bodyDiv.AddChidren(btnSwitch); |
| | | //加载开关按钮事件 |
| | | LoadEvent_SwitchFunction(btnSwitch); |
| | | } |
| | | //加载开关按钮事件 |
| | | LoadEvent_SwitchFunction(btnSwitch); |
| | | |
| | | switch (function.functionCategory) |
| | | { |
| | |
| | | /// </summary> |
| | | void LoadLastStatesButton() |
| | | { |
| | | if(function.spk == SPK.LightSwitch) |
| | | { |
| | | return; |
| | | } |
| | | var btnLastStates = new Button() |
| | | { |
| | | X = Application.GetRealWidth(10 + 32 + 8), |