예제 #1
0
 /// <summary>
 /// Applies the browser validation by setting up one or
 /// more input rules on <see cref="IBrowserValidationGenerator"/>.
 /// </summary>
 /// <param name="config">The config.</param>
 /// <param name="inputType">Type of the input.</param>
 /// <param name="generator">The generator.</param>
 /// <param name="attributes">The attributes.</param>
 /// <param name="name">The name.</param>
 public void ApplyBrowserValidation(BrowserValidationConfiguration config, InputElementType inputType,
                                    IBrowserValidationGenerator generator, IDictionary attributes,
                                    string name)
 {
     generator.SetAsGroupValidation(name, Name, BuildErrorMessage());
 }
		/// <summary>
		/// Applies the browser validation by setting up one or
		/// more input rules on <see cref="IBrowserValidationGenerator"/>.
		/// </summary>
		/// <param name="config">The config.</param>
		/// <param name="inputType">Type of the input.</param>
		/// <param name="generator">The generator.</param>
		/// <param name="attributes">The attributes.</param>
		/// <param name="name">The name.</param>
		public void ApplyBrowserValidation(BrowserValidationConfiguration config, InputElementType inputType,
		                                   IBrowserValidationGenerator generator, IDictionary attributes,
		                                   string name)
		{
			generator.SetAsGroupValidation(name, Name, BuildErrorMessage());
		}