Пример #1
0
 public XsnWrapper(string templateFilePath)
 {
     this.FolderPath  = Utilities.UncabXsn(templateFilePath);
     this.XsnContents = Directory.GetFiles(this.FolderPath);
     AddOriginalFile(Path.Combine(FolderPath, TemplateFileName));
     this.Manifest = new ManifestWrapper(System.IO.File.ReadAllText(Path.Combine(this.FolderPath, ManifestFileName)));
 }
Пример #2
0
        public static DataConnectionList DataConnections(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            DataConnectionList dcList = new DataConnectionList();

            dcList.DataConnections = manifest.GetAllDataConnectionInfo();

            return(dcList);
        }
Пример #3
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);
        }
Пример #4
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);
        }
Пример #5
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);
        }
Пример #6
0
        public static Property ViewCount(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            return(manifest.GetViewCount());
        }
Пример #7
0
        public static Property FormVersion(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            return(manifest.GetSolutionVersion());
        }