public FormDescReferable(FormDescReferable other) : base() { // this part == static, therefore only shallow copy this.FormTitle = other.FormTitle; this.FormInfo = other.FormInfo; this.KeySemanticId = other.KeySemanticId; this.PresetIdShort = other.PresetIdShort; this.PresetCategory = other.PresetCategory; this.PresetDescription = other.PresetDescription; }
public PlotItem(AdminShell.SubmodelElement sme, string args, string path, string value, AdminShell.Description description, string lang) { SME = sme; ArgsStr = args; _path = path; _value = value; _description = description; _displayDescription = description?.GetDefaultStr(lang); TryParseArgs(); }
public static LocalizedText GetBestUaDescriptionFromAasDescription(AdminShell.Description desc) { var res = new LocalizedText("", ""); if (desc != null && desc.langString != null) { var found = false; foreach (var ls in desc.langString) if (!found || ls.lang.Trim().ToLower().StartsWith("en")) { found = true; res = new LocalizedText(ls.lang, ls.str); } } return res; }