| | |
| | | /// </summary> |
| | | public async void Set() |
| | | { |
| | | if (_allResultList != null && _allResultList.Count > 0) |
| | | { |
| | | var codes = _allResultList?.Select(x => x.Code).Distinct().ToList(); |
| | | _views?.ForEach(x => x.RestoreComponentsColor(codes)); |
| | | } |
| | | if (this.Visible) |
| | | { |
| | | var allResultList = await GetResultList(); |
| | |
| | | var codes = group.Select(x => x.Code).Distinct().ToList(); |
| | | _views?.ForEach(x => x.OverrideComponentsColor(codes, group.Key, 1)); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | var codes = _allResultList?.Select(x => x.Code).Distinct().ToList(); |
| | | _views?.ForEach(x => x.RestoreComponentsColor(codes)); |
| | | } |
| | | } |
| | | |