| | |
| | | try |
| | | { |
| | | var addTemp = Newtonsoft.Json.JsonConvert.DeserializeObject<List<GroupControl>>(pack.Data.ToString()); |
| | | FunctionList.List.groupControls.AddRange(addTemp); |
| | | if (addTemp != null && addTemp.Count > 0) |
| | | groupControl.userDeviceGroupControlId = addTemp[0].userDeviceGroupControlId; |
| | | FunctionList.List.groupControls.Add(groupControl); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | btnChooseAll.TextID = StringId.SelectAll; |
| | | btnConfrim.IsSelected = false; |
| | | btnChooseAll.MouseUpEventHandler = (sender2, e2) => { |
| | | if (groupControlLightList.Count > 0) |
| | | if (groupControlLightList.Count == listFunc.Count) |
| | | { |
| | | groupControlLightList.Clear(); |
| | | btnChooseAll.TextID = StringId.SelectAll; |
| | |
| | | } |
| | | else |
| | | { |
| | | groupControlLightList.Clear(); |
| | | groupControlLightList.AddRange(listFunc); |
| | | btnChooseAll.TextID = StringId.Cancel; |
| | | btnConfrim.IsSelected = true; |