Example #1
0
        private bool AcceptCustomValueObject(object value)
        {
            ParseIntegerValueEventArgs e = new ParseIntegerValueEventArgs(value);
            OnParseValue(e);
            if (e.IsParsed)
            {
                this.Value = e.ParsedValue;
            }

            return e.IsParsed;
        }
Example #2
0
 /// <summary>
 /// Raises the ParseValue event.
 /// </summary>
 /// <param name="e">Provides event arguments.</param>
 protected virtual void OnParseValue(ParseIntegerValueEventArgs e)
 {
     if (ParseValue != null)
         ParseValue(this, e);
 }
Example #3
0
        private bool AcceptCustomRatingValue(object value)
        {
            ParseIntegerValueEventArgs e = new ParseIntegerValueEventArgs(value);
            OnParseRatingValue(e);
            if (e.IsParsed)
            {
                this.Rating = e.ParsedValue;
            }

            return e.IsParsed;
        }