using MECF.Framework.UI.Client.CenterViews.Configs.SystemConfig; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FurnaceUI.Views.ParameterSC { class FlowSettingDict { public Dictionary> FlowSettings { get; set; } = new Dictionary>(); IEnumerable Generate() { for (char c = 'A'; c <= 'Z'; c++) yield return new string(c, 1); } public FlowSettingDict() { GetSCValue(); } public void GetSCValue() { FlowSettings.Clear(); var tempConfigs = SystemConfigProvider.Instance.GetValuesByNode($"PM1.RecipeEditParameter.FlowSetting"); var temp = Generate(); foreach (var item in tempConfigs) { Dictionary mfcSetting = new Dictionary(); foreach (var subitem in temp) { mfcSetting[subitem] = SystemConfigProvider.Instance.GetValueByName($"PM1.RecipeEditParameter.FlowSetting.{item}.{subitem}"); } FlowSettings[item] = mfcSetting; } } } }