|
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace Itboy.Components
{
/// <summary>
/// Provider data for custom validation - CustomValidation event.
/// </summary>
public sealed class ValidationEventArgs:EventArgs
{
private Control control;
/// <summary>
/// Gets control which when raise CustomValidation event.
/// </summary>
public Control Control
{
get
{
return this.control;
}
}
/// <summary>
/// Gets or Sets a value indicating whether control text pass custom code test.
/// </summary>
private bool valid = true;
public bool Valid
{
get
{
return this.valid;
}
set
{
this.valid = value;
}
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="control">Validated control instance.</param>
public ValidationEventArgs(Control control)
{
this.control = control;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a Software Architect, working for a telecom in Portland, OR. My specialties are C#, Win32 C/C++ programming, Visual Basic (6 and .NET), and ASP(.NET), XML/XSL, and database programming. I'm currently learning F#. Completely different than anything I've ever done, but very cool. I'm married to the most wonderful woman, have a beautiful daughter that I'm very proud of, and a step-son that's rocking in high school. I'm also a 2nd degree blackbelt in Olympic style (WTF) Taekwondo, and have trained in Brazilian Jiujitsu, Jeet Kun Do, Krav Maga.