Exemplo n.º 1
0
        public override bool AppliesToFile(Data.ManagedFile file)
        {
            if (string.IsNullOrWhiteSpace(file.Name))
            {
                return(false);
            }

            if (file.IsStatisticalCommandFile())
            {
                return(false);
            }

            if (file.IsStatisticalDataFile())
            {
                return(false);
            }

            string[] okFormats = new[]
            {
                ".txt", ".pdf"
            };

            string ext = Path.GetExtension(file.Name).ToLower();

            if (okFormats.Contains(ext))
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
        public override bool AppliesToFile(Data.ManagedFile file)
        {
            if (string.IsNullOrWhiteSpace(file.Name))
            {
                return(false);
            }

            if (file.IsStatisticalDataFile())
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 3
0
        public override bool AppliesToFile(Data.ManagedFile file)
        {
            if (string.IsNullOrWhiteSpace(file.Name))
            {
                return(false);
            }

            string lower = file.Name.ToLower();

            if (lower.Contains(".dta") ||
                lower.Contains(".sav"))
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 4
0
 public virtual bool AppliesToFile(Data.ManagedFile file)
 {
     return(false);
 }