Beispiel #1
0
 /// <summary>
 /// Called to broadcast the end of editing event.
 /// </summary>
 /// <param name="endEditEventArgs">Event argument.</param>
 protected virtual void OnEndEdit(EndEditEventArgs endEditEventArgs)
 {
     // If the escape key was used to end the control's focus, we inhibit the 'EndEdit' event from fireing.  All
     // other methods of exiting the control will multicast this event to anyone listening.  This is usually a
     // signal that the user has accepted the input and the program should process it now.
     if (this.EndEdit != null)
     {
         this.EndEdit(this, endEditEventArgs);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Called to validate the field and broadcast the end of editing event.
 /// </summary>
 /// <param name="endEditEventArgs">Event argument.</param>
 protected override void OnEndEdit(EndEditEventArgs endEditEventArgs)
 {
     // Call the background to find the code of the field based on the text entered and return that code to the
     // caller.
     ThreadPool.QueueUserWorkItem(new WaitCallback(EndEditCommand), endEditEventArgs);
 }