| | |
| | | using Shared; |
| | | namespace HDL_ON.UI.UI2.Classification |
| | | { |
| | | /// <summary> |
| | | /// 跑马灯页面 |
| | | /// 序列页面 |
| | | /// </summary> |
| | | public class SeriesFunctionListPage : FrameLayout |
| | | { |
| | | FrameLayout bodyView; |
| | |
| | | |
| | | Dictionary<string, List<Button>> dicGroupButtons = new Dictionary<string, List<Button>>(); |
| | | |
| | | List<string> oidList = new List<string>(); |
| | | |
| | | foreach(var rgb in FunctionList.List.GetLightList()) |
| | | { |
| | | if(rgb.spk == SPK.LightRGB) |
| | | //if(rgb.spk == SPK.LightRGB) |
| | | { |
| | | if (rgb.GetAttribute(FunctionAttributeKey.Colorful) == null) |
| | | var oid = rgb.sid.Substring(0, 16); |
| | | if (oidList.Contains(oid)) |
| | | { |
| | | continue; |
| | | } |
| | | List<Button> groupButtons = new List<Button>(); |
| | | var list = new List<Function>(); |
| | | list.Add(rgb); |
| | | var oid = rgb.sid.Substring(0, 16); |
| | | var seriesList = FunctionList.List.GetSeries().FindAll((obj) => obj.sid.StartsWith(oid)); |
| | | if (seriesList.Count == 0) |
| | | { |
| | | continue; |
| | | } |
| | | oidList.Add(oid); |
| | | var list = new List<Function>(); |
| | | List<Button> groupButtons = new List<Button>(); |
| | | list.AddRange(seriesList); |
| | | var groupView = new VerticalScrolViewLayout() |
| | | { |
| | |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.MainColor, |
| | | Text = rgb.name, |
| | | Text =Language.StringByID( StringId.HorseRaceLampGroup )+ " "+ oidList.Count.ToString(), |
| | | }; |
| | | if(Language.CurrentLanguage == "Chinese") |
| | | { |
| | | btnTitle.Text = Language.StringByID(StringId.HorseRaceLampGroup) + oidList.Count.ToString(); |
| | | } |
| | | titleView.AddChidren(btnTitle); |
| | | |
| | | #endregion |