Esempio n. 1
0
 /// <summary>
 /// Raises the ParseValue event.
 /// </summary>
 /// <param name="e">Provides event arguments.</param>
 protected virtual void OnParseValue(ParseDateTimeValueEventArgs e)
 {
     if (ParseValue != null)
         ParseValue(this, e);
 }
Esempio n. 2
0
        private bool AcceptCustomValueObject(object value)
        {
            ParseDateTimeValueEventArgs e = new ParseDateTimeValueEventArgs(value);
            OnParseValue(e);
            if (e.IsParsed)
            {
                this.Value = e.ParsedValue;
            }

            return e.IsParsed;
        }