| | |
| | | showCount = 0; |
| | | functionListView.RemoveAll(); |
| | | } |
| | | int i = 0; |
| | | foreach (var function in functions) |
| | | for(var i =0;i<100;i++) |
| | | //foreach (var function in functions) |
| | | { |
| | | i++; |
| | | if (i > 100) |
| | | showCount++; |
| | | if (showCount >= functions.Count) |
| | | { |
| | | break; |
| | | } |
| | | showCount++; |
| | | var function = functions[showCount]; |
| | | |
| | | var functionDiv = new LightRow(function) |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | |
| | | Height = Application.GetRealWidth(32), |
| | | UnSelectedImagePath = "FunctionIcon/Light/LightScene/CheckIcon.png", |
| | | SelectedImagePath = "FunctionIcon/Light/LightScene/CheckOnIcon.png", |
| | | IsSelected = functions.Find((obj) => obj.deviceId == function.deviceId) != null |
| | | IsSelected = functions.Find((obj) => obj.deviceId == function.deviceId) != null, |
| | | Tag = "ChooseIcon" |
| | | }; |
| | | if (DB_ResidenceData.Instance.HomeGateway.isSupportGroupControl) |
| | | { |
| | |
| | | } |
| | | } |
| | | ///刷新界面 |
| | | if (functions.Count == 0 || functions.Count == 1) |
| | | { |
| | | //if (functions.Count == 0 || functions.Count == 1) |
| | | //{ |
| | | action(); |
| | | } |
| | | //} |
| | | }; |
| | | |
| | | } |