protected override void refresh() { if (strings?.Count > 0) { return; } CfgVarsHelper.getVarNames(out List <string> fields); $"CfgVarsCache fields added:\r\n{string.Join("\r\n", fields)}".logDbg(); strings = fields.Select(field => field + " ").ToList(); // adding space for convenience strings.Sort(); }
protected override void refresh() { if (strings.Count > 0) { return; } CfgVarsHelper.getVarNames(out List <string> fields); fields.logDbg("CfgVarsCache added field "); for (int i = 0; i < fields.Count; i++) { fields[i] += " "; // adding space for convenience } strings.AddRange(fields); }