| | |
| | | using System.Collections.Generic; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.CSS; |
| | | using System.Linq; |
| | | |
| | | namespace HDL_ON.UI.UI2.Intelligence.Automation |
| | | { |
| | |
| | | string key = "signal"; |
| | | selectedState = device.spk + "_" + key; |
| | | PublicInterface pif = new PublicInterface(); |
| | | var sourceList = new List<string>(); |
| | | sourceList.Add("HDML 1"); |
| | | sourceList.Add("HDML 2"); |
| | | sourceList.Add("HDML 3"); |
| | | sourceList.Add("HDML 4"); |
| | | sourceList.Add("Live TV"); |
| | | sourceList.Add("PS"); |
| | | sourceList.Add("AV"); |
| | | pif.SingleSelectionShow(this, sourceList, Language.StringByID(StringId.xinhaoyuan), currText |
| | | var dic = pif.GetHisenseSignalSourceDic(); |
| | | pif.SingleSelectionShow(this, dic.Keys.ToList(), Language.StringByID(StringId.xinhaoyuan), currText |
| | | , (valueStr) => |
| | | { |
| | | //界面显示选中值 |
| | | sourceView.btnState.Text = valueStr; |
| | | string value = valueStr.Replace(" ", "_"); |
| | | string value = pif.GetValue(dic, valueStr); |
| | | //数据封装 |
| | | AddDictionary(key, value); |
| | | |