Beispiel #1
0
        public static FormInformation FormInformationFromFormFileRequest(FormFileRequest formFileRequest)
        {
            XsnWrapper      xsnWrapper = new XsnWrapper(Utilities.SaveFormFileRequest(formFileRequest));
            FormInformation formInfo   = Utilities.GenerateFormInformation(xsnWrapper);

            xsnWrapper.Dispose();

            return(formInfo);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
        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)));
        }