예제 #1
0
 public static ExportAnnotationSettings AllAnnotations(SrmDocument document)
 {
     return(EMPTY.ChangeElementTypes(ElementHandler
                                     .GetElementHandlers(SkylineDataSchema.MemoryDataSchema(document, DataSchemaLocalizer.INVARIANT))
                                     .Select(handler => handler.Name))
            .ChangeAnnotationNames(
                document.Settings.DataSettings.AnnotationDefs.Select(annotationDef => annotationDef.Name))
            .ChangePropertyNames(new[] { @"Note" }));
 }
예제 #2
0
 // ReSharper restore LocalizableElement
 public DocumentAnnotations(SkylineDataSchema skylineDataSchema)
 {
     DataSchema       = skylineDataSchema;
     _elementHandlers = ElementHandler.GetElementHandlers(DataSchema).ToDictionary(handler => handler.Name);
 }