public bool Validate(object value)
 {
     if (ValidatorConverters.ValidatorStringConverter(value) == "")
     {
         return(true);
     }
     return(Directory.Exists(ValidatorConverters.ValidatorStringConverter(value)));
 }
Пример #2
0
            public bool Validate(object value)
            {
                string convertedValue = ValidatorConverters.ValidatorStringConverter(value);

                try
                {
                    Keys convertedKey = (Keys)Enum.Parse(typeof(Keys), convertedValue, true);
                }
                catch (ArgumentException)
                {
                    return(false);
                }

                return(true);
            }