StrataFrame Forum

FieldPropertyChanged Event Handler

http://forum.strataframe.net/Topic19719.aspx

By Leonard P. - 9/25/2008

Hi,



I want to be able to respond to FieldPropertyChanged event on the BO level (i.e. code lives inside BO class). I enabled BO Mapper to generate event on property change. But I don't see this event in the events list in BO's properties window. I can only see this event when I look at the BO properties on the form.

What's going on?



Thanks.
By Trent L. Taylor - 9/26/2008

I guess I don't understand what you mean.  The event is created after you rebuild the partial class and is defined within the designer file of the BO in which is was added.  If you want to handle the event within the BO itself, then add a handler in the constructor or where you need the BO to start handling the event:

this.FieldPropertyChanged +=new CustomersBOFieldPropertyChangedEventHandler(CustomersBO_FieldPropertyChanged);

By Dustin Taylor - 9/26/2008

1) Re-build the partial class for your BO within the BO Mapper

1) Build the project

3) Close your form

4) Re-open your form



Do the above and you should be able to see the events from the properties window.