#if FRAMEWORK20 using System; using System.Collections.Generic; using System.Text; namespace DevComponents.Editors.DateTimeAdv { /// /// Defines data for the ParseValue event that allows you to provide custom parsing for values set to ValueObject property. /// public class ParseDateTimeValueEventArgs : 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 ParseDateTimeValueEventArgs(object valueObject) { ValueObject = valueObject; } private System.DateTime _ParsedValue = DateTimeGroup.MinDateTime; /// /// /// /// Gets or sets the parsed value from ValueObject property. /// /// public System.DateTime ParsedValue { get { return _ParsedValue; } set { _ParsedValue = value; IsParsed = true; } } } /// /// Defines delegate for ParseDateTimeValue event. /// /// /// public delegate void ParseDateTimeValueEventHandler(object sender, ParseDateTimeValueEventArgs e); } #endif