コード例 #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);
 }