public ListColumnPropertyDescriptor(SkylineDataSchema dataSchema, string listName, AnnotationDef annotationDef) : base(AnnotationDef.ANNOTATION_PREFIX + annotationDef.Name, AnnotationPropertyDescriptor.GetAttributes(annotationDef)) { SkylineDataSchema = dataSchema; ListName = listName; AnnotationDef = annotationDef; _listInfo = CachedValue.Create(dataSchema, () => GetListInfo(SkylineDataSchema.Document)); _listItemType = ListItemTypes.INSTANCE.GetListItemType(listName); }
protected virtual string[] GetDropdownItems(AnnotationPropertyDescriptor annotationPropertyDescriptor) { var annotationDef = annotationPropertyDescriptor.AnnotationDef; annotationDef = SkylineDataSchema.Document.Settings.DataSettings.AnnotationDefs .FirstOrDefault(def => def.Name == annotationDef.Name) ?? annotationPropertyDescriptor.AnnotationDef; return(new[] { string.Empty }.Concat(annotationDef.Items).ToArray()); }
protected virtual string[] GetDropdownItems(AnnotationPropertyDescriptor annotationPropertyDescriptor) { return(new[] { string.Empty }.Concat(annotationPropertyDescriptor.AnnotationDef.Items).ToArray()); }