Example #1
0
        /// <summary>
        /// Raises the <see cref="Wilco.Web.UI.WebControls.SmartTextBox.AutoCompletion"/> event.
        /// </summary>
        /// <param name="e"></param>
        /// <returns>An array of suggestions, or null if no event handler was specified.</returns>
        protected virtual AutoCompleteSuggestion[] OnAutoCompletion(AutoCompleteEventArgs e)
        {
            AutoCompleteEventHandler handler = this.Events[EventAutoCompletion] as AutoCompleteEventHandler;

            if (handler != null)
            {
                return(handler(this, e));
            }

            return(null);
        }
Example #2
0
		/// <summary>
		/// Raises the <see cref="Wilco.Web.UI.WebControls.SmartTextBox.AutoCompletion"/> event.
		/// </summary>
		/// <param name="e"></param>
		/// <returns>An array of suggestions, or null if no event handler was specified.</returns>
		protected virtual AutoCompleteSuggestion[] OnAutoCompletion(AutoCompleteEventArgs e)
		{
			AutoCompleteEventHandler handler = this.Events[EventAutoCompletion] as AutoCompleteEventHandler;
			if (handler != null)
			{
				return handler(this, e);
			}

			return null;
		}