Event Handlers

Aug 21, 2009 at 10:27 PM
Edited Aug 21, 2009 at 10:33 PM

I'm moving from your retail version of about a year ago to the open source one.

One of the difficulties I'm coming across is with the lack of delegate event handlers.

this.Interpreter.PositionChanged += new GeoFramework.PositionEventHandler(this.Interpreter_PositionChanged);

 

Thoughts?

 

Many Thanks

 

Edit: Clarification. PositionEventHandler used to exist in the older retail version I had. I just need some help being pointed in the right direction.

Aug 21, 2009 at 11:29 PM

Second issue someone might be able to shine some light onto. For some reason I can't get the windows form designer to consider the controls safe unless I have the asmmeta file found with my retail version.

 

Also I'm using CF 2.0

Coordinator
Aug 23, 2009 at 11:41 PM

.NET Framework 2.0 introduced the EventHandler<T> generic which we now use instead of making delegates for every event.  As a result, PositionEventHandler would become EventHandler<PositionEventArgs> and so on.  As for the wndows Forms designer, we've always struggled with obscure Windows Forms errors since the beginning.  Since the errors give you stack traces into Visual Studio's own code, these errors are nototiously difficult to debug.

Aug 24, 2009 at 5:57 PM

Ah ok. Thanks for the reply.