Esempio n. 1
0
        private void ParseSupportedFileExtensions(XmlDocument doc)
        {
            ConfigurationFile.GetDefaultSupportedFileExtensions().ForEach(ext => SupportedExtensions.Add(ext));

            foreach (XmlElement e in doc.SelectNodes("/ccm/fileExtensions/fileExtension"))
            {
                SupportedExtensions.Add(e.InnerText);
            }
        }
Esempio n. 2
0
        /// <summary>
        ///     Adds the extension to the supported extensions.
        /// </summary>
        /// <param name="extensionName">Name of the extension.</param>
        protected void AddExtension(string extensionName)
        {
            if (SupportedExtensions == null)
            {
                SupportedExtensions = new PxExtensionNamesClass();
            }

            SupportedExtensions.Add(extensionName);
        }