Exemple #1
0
        public override bool isValid()
        {
            // filter if there are no files
            if (!Filenames.Any())
            {
                return(false);
            }

            // filter if there is only one file with no name
            if (Filenames.Count == 1 && Filenames[0] == string.Empty)
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 public override bool isValid()
 {
     return(Filenames.Any(str => !String.IsNullOrWhiteSpace(str)));
 }