More complex derivation of InfoPathFile. In addit
Inheritance: InfoPathFile
Exemplo n.º 1
0
        public static InfoPathManifest Create(CabFileInfo cabFileInfo)
        {
            InfoPathManifest manifest = new InfoPathManifest();

            manifest.CabFileInfo = cabFileInfo;
            return(manifest);
        }
        private void InitializeManifest()
        {
            if (_infoPathManifest != null) return;

            // get the files named manifest.xsf (there should be one)
            IList<CabFileInfo> cbInfos = CabInfo.GetFiles("manifest.xsf");
            if (cbInfos.Count != 1) throw new ArgumentException("Invalid InfoPath xsn");
            _infoPathManifest = InfoPathManifest.Create(cbInfos[0]);
        }
Exemplo n.º 3
0
        private void InitializeManifest()
        {
            if (_infoPathManifest != null)
            {
                return;
            }

            // get the files named manifest.xsf (there should be one)
            IList <CabFileInfo> cbInfos = CabInfo.GetFiles("manifest.xsf");

            if (cbInfos.Count != 1)
            {
                throw new ArgumentException("Invalid InfoPath xsn");
            }
            _infoPathManifest = InfoPathManifest.Create(cbInfos[0]);
        }
 public static InfoPathManifest Create(CabFileInfo cabFileInfo)
 {
     InfoPathManifest manifest = new InfoPathManifest();
     manifest.CabFileInfo = cabFileInfo;
     return manifest;
 }