Beispiel #1
0
 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);
 }
Beispiel #2
0
        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());
        }
Beispiel #3
0
 protected virtual string[] GetDropdownItems(AnnotationPropertyDescriptor annotationPropertyDescriptor)
 {
     return(new[] { string.Empty }.Concat(annotationPropertyDescriptor.AnnotationDef.Items).ToArray());
 }