Exemplo n.º 1
0
        /// <summary>
        /// Loads the file.
        /// </summary>
        /// <param name="path">The path.</param>
        /// <param name="policy">The policy.</param>
        /// <returns></returns>
        public static cssCollection LoadFile(String path, cssEntryPolicy policy = cssEntryPolicy.replace)
        {
            cssCollection output = new cssCollection();

            output.Load(path, policy);
            return(output);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Loads the file.
        /// </summary>
        /// <param name="folder">The folder.</param>
        /// <param name="filename">The filename.</param>
        /// <param name="policy">The policy.</param>
        /// <returns></returns>
        public static cssCollection LoadFile(folderNode folder, String filename, cssEntryPolicy policy = cssEntryPolicy.replace)
        {
            cssCollection output = new cssCollection();

            String p = folder.findFile(filename, SearchOption.TopDirectoryOnly);

            output.Load(p, policy);
            return(output);
        }