| | |
| | | this.RemoveFromParent(); |
| | | return; |
| | | } |
| | | groupControl.sids.Clear(); |
| | | foreach (var light in groupControlLightList) |
| | | { |
| | | try |
| | | { |
| | | var gc = new GroupControlFunction(); |
| | | gc.sid = light.sid; |
| | | gc.spk = light.spk; |
| | | groupControl.sids.Add(gc); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"新增群控转换数据异常:{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | var pack = Common.ApiUtlis.Ins.HttpRequest.EditGroupControl(new List<GroupControl>() { groupControl }); |
| | | if (pack != null) |
| | | { |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | Text = "加载更多", |
| | | TextID = StringId.LoadMore, |
| | | }; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | btnAppend.Text = "Load more"; |
| | | } |
| | | functionListView.AddChidren(btnAppend); |
| | | btnAppend.MouseUpEventHandler = (sender, e) => |
| | | { |