コード例 #1
0
 public virtual void Export(object selectedObject) {
     var exportEngine = new ExportEngine();
     var document = exportEngine.Export(View.SelectedObjects.OfType<XPBaseObject>(), ObjectSpace.GetObject((ISerializationConfigurationGroup)selectedObject));
     Save(document);
 }
コード例 #2
0
 static XDocument ExportRecords(XPObjectSpace XPObjectSpace) {
     ISerializationConfiguration serializationConfiguration = XPObjectSpace.CreateObject<SerializationConfiguration>();
     serializationConfiguration.TypeToSerialize = typeof(PEnumClass);
     serializationConfiguration.SerializationConfigurationGroup =
         XPObjectSpace.CreateObject<SerializationConfigurationGroup>();
     new ClassInfoGraphNodeBuilder().Generate(serializationConfiguration);
     XDocument document = new ExportEngine().Export(new[] { _pEnumClass }, serializationConfiguration.SerializationConfigurationGroup);
     return document;
 }