| | |
| | | SelectedImagePath = "Collection/DefenseStatusIcon.png", |
| | | UnSelectedImagePath = "Collection/DisarmStatusIcon.png" |
| | | }; |
| | | if (false && DB_ResidenceData.Instance.GatewayType == 1) |
| | | if (DB_ResidenceData.Instance.GatewayType == 1) |
| | | { |
| | | |
| | | topView.AddChidren(btnSecurityStatus); |
| | |
| | | |
| | | #if DEBUG |
| | | |
| | | FunctionList.List.Functions.Add(new Function() |
| | | { |
| | | spk = SPK.PanelSocket, |
| | | name = "面板插座", |
| | | attributes = new List<FunctionAttributes> |
| | | { |
| | | new FunctionAttributes(){ key = "on_off",curValue= "on",state = "on" }, |
| | | new FunctionAttributes(){ key = "on_off_usb",curValue= "on",state = "on" }, |
| | | new FunctionAttributes(){ key = "active_power",curValue= "220",state = "220" }, |
| | | new FunctionAttributes(){ key = "voltage",curValue= "5",state = "5" }, |
| | | new FunctionAttributes(){ key = "current",curValue= "110",state = "110" }, |
| | | new FunctionAttributes(){ key = "total_electricity",curValue= "123.33",state = "123.33" }, |
| | | } |
| | | }); |
| | | |
| | | //FunctionList.List.Functions.Add(new Function() |
| | | //{ |