Example #1
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);
        }
Example #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);
        }
Example #3
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)));
        }
Example #4
0
        public static FormPropertyList FormName(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            FormPropertyList properties = new FormPropertyList();

            properties.Add(manifest.GetInitialCaption());
            properties.Add(manifest.GetId());

            return(properties);
        }
Example #5
0
 public static ManifestFileWithProperties ManifestWithProperties(ClientContext context, string libraryUrl, string xsnUrl)
 {
     using (XsnWrapper xsnWrapper = new XsnWrapper(Utilities.DownloadXsn(context, libraryUrl, xsnUrl)))
     {
         FormPropertyList propList = new FormPropertyList
         {
             FormProperties = xsnWrapper.GetAllXsnProperties()
         };
         return(new ManifestFileWithProperties(propList, new FormFile(manifestPath, xsnWrapper.Manifest.Manifest.OuterXml)));
     }
 }
Example #6
0
        public static FormPropertyList FormSecuritySettings(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            FormPropertyList propertyList = new FormPropertyList();

            propertyList.Add(manifest.GetInitialCaption());
            propertyList.Add(manifest.GetTrustSetting());
            propertyList.Add(manifest.GetTrustLevel());

            return(propertyList);
        }
Example #7
0
        public static FormPropertyList FormCompatibility(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            FormPropertyList properties = new FormPropertyList();

            properties.Add(manifest.GetInitialCaption());
            properties.Add(manifest.GetInfoPathVersion());
            properties.Add(manifest.BrowserCompatible());

            return(properties);
        }
Example #8
0
 public ManifestFileWithProperties(FormPropertyList formProperties, FormFile formFile)
 {
     this.FormProperties = formProperties;
     this.FormFile       = formFile;
 }