コード例 #1
0
		public void GetSettingFromConfig(FormConfigBase config) {
			if (config != null && config.ValidateHuman != null) {
				this.UseValidateHuman = true;
				this.ValidateHumanClass = config.ValidateHuman.GetType().AssemblyQualifiedName;
				if (!String.IsNullOrEmpty(config.ValidateHuman.AltValidationFailText)) {
					this.ValidationFailText = config.ValidateHuman.AltValidationFailText;
				}
			} else {
				this.UseValidateHuman = false;
				this.ValidateHumanClass = String.Empty;
				this.ValidationFailText = String.Empty;
			}
		}
コード例 #2
0
 public void GetSettingFromConfig(FormConfigBase config)
 {
     if (config != null && config.ValidateHuman != null)
     {
         this.UseValidateHuman   = true;
         this.ValidateHumanClass = config.ValidateHuman.GetType().AssemblyQualifiedName;
         if (!String.IsNullOrEmpty(config.ValidateHuman.AltValidationFailText))
         {
             this.ValidationFailText = config.ValidateHuman.AltValidationFailText;
         }
     }
     else
     {
         this.UseValidateHuman   = false;
         this.ValidateHumanClass = String.Empty;
         this.ValidationFailText = String.Empty;
     }
 }