| | |
| | | { |
| | | if (pack.Code == StateCode.SUCCESS) |
| | | { |
| | | FunctionList.List.groupControls.Remove(groupControl); |
| | | FunctionList.List.groupControls.Remove(groupControl);//var delTemp = FunctionList.List.groupControls.Find((obj) => groupControl.sid == obj.sid); |
| | | //list.Remove(groupControl); |
| | | this.RemoveFromParent(); |
| | | delAction?.Invoke(); |
| | |
| | | var groupControlTypes = Newtonsoft.Json.JsonConvert.DeserializeObject<List<GroupControlType>>(pack.Data.ToString()); |
| | | if (groupControlTypes != null && groupControlTypes.Count > 0) |
| | | { |
| | | //groupControlType = new GroupControlType { |
| | | // type = "LIGHT", |
| | | // typeName ="灯光控制", |
| | | // spks = new List<string> { "light.switch" }, |
| | | // spkAttrs = new List<string> { "on_off" } |
| | | //}; |
| | | groupControlType = groupControlTypes[0]; |
| | | Application.RunOnMainThread(() => { |
| | | LoadLightRow(lightList); |