Example #1
0
        public bool IsValidFileName(string fileName)
        {
            IExtensionManager mgr = new FileExtensionManager();

            return(mgr.IsValid(fileName) && Path.GetFileNameWithoutExtension(fileName).Length > 5);
        }
        protected virtual bool IsValid(string fileName)
        {
            FileExtensionManager mgr = new FileExtensionManager();

            return(mgr.IsValid(fileName));
        }