public static FormInformation FormInformationFromFormFileRequest(FormFileRequest formFileRequest) { XsnWrapper xsnWrapper = new XsnWrapper(Utilities.SaveFormFileRequest(formFileRequest)); FormInformation formInfo = Utilities.GenerateFormInformation(xsnWrapper); xsnWrapper.Dispose(); return(formInfo); }
public static FormPropertyList AllFormPropertiesFromFormFileRequest(FormFileRequest formFileRequest) { FormPropertyList propList = new FormPropertyList(); XsnWrapper xsnWrapper = new XsnWrapper(Utilities.SaveFormFileRequest(formFileRequest)); propList.FormProperties = xsnWrapper.GetAllXsnProperties(); xsnWrapper.Dispose(); return(propList); }
public static FormPropertyList AllFormProperties(ClientContext context, string libraryUrl, string xsnUrl) { FormPropertyList propList = new FormPropertyList(); XsnWrapper xsnWrapper = new XsnWrapper(Utilities.DownloadXsn(context, libraryUrl, xsnUrl)); propList.FormProperties = xsnWrapper.GetAllXsnProperties(); xsnWrapper.Dispose(); return(propList); }
public static ViewInfoList Views(ClientContext context, string libraryUrl, string xsnUrl) { ViewInfoList viewInfos = new ViewInfoList(); XsnWrapper xsnWrapper = new XsnWrapper(Utilities.DownloadXsn(context, libraryUrl, xsnUrl)); viewInfos.ViewInfos = Utilities.GetViewInfos(xsnWrapper); xsnWrapper.Dispose(); return(viewInfos); }
public static ManifestFileWithProperties ManifestWithPropertiesFromFormFileRequest(FormFileRequest formFileRequest) { FormPropertyList propList = new FormPropertyList(); XsnWrapper xsnWrapper = new XsnWrapper(Utilities.SaveFormFileRequest(formFileRequest)); propList.FormProperties = xsnWrapper.GetAllXsnProperties(); xsnWrapper.Dispose(); return(new ManifestFileWithProperties(propList, new FormFile(manifestPath, xsnWrapper.Manifest.Manifest.OuterXml))); }