using System; using System.Text; namespace DevComponents.Editors { /// /// Defines data for the ParseValue event that allows you to provide custom parsing for values set to ValueObject property. /// public class ParseIntegerValueEventArgs : EventArgs { /// /// Get the value that was set to the ValueObject property and which should be converted to ParsedValue DateTime. /// public readonly object ValueObject = null; /// /// Gets or sets whether you have provided ParsedValue. /// public bool IsParsed = false; /// /// Initializes a new instance of the ParseDateTimeValueEventArgs class. /// /// Indicates the value object. public ParseIntegerValueEventArgs(object valueObject) { ValueObject = valueObject; } private int _ParsedValue = 0; /// /// /// /// Gets or sets the parsed value from ValueObject property. /// /// public int ParsedValue { get { return _ParsedValue; } set { _ParsedValue = value; IsParsed = true; } } } /// /// Defines delegate for ParseValue event. /// /// /// public delegate void ParseIntegerValueEventHandler(object sender, ParseIntegerValueEventArgs e); }