public virtual void Export(object selectedObject) { var exportEngine = new ExportEngine(); var document = exportEngine.Export(View.SelectedObjects.OfType<XPBaseObject>(), ObjectSpace.GetObject((ISerializationConfigurationGroup)selectedObject)); Save(document); }
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; }