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