Click here to Skip to main content
15,884,237 members
Home / Discussions / C#
   

C#

 
GeneralRe: Stuck on delegates / events Pin
Pete O'Hanlon17-Dec-13 7:54
mvePete O'Hanlon17-Dec-13 7:54 
GeneralRe: Stuck on delegates / events Pin
Richard Deeming17-Dec-13 8:28
mveRichard Deeming17-Dec-13 8:28 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 8:28
jxfdasilva17-Dec-13 8:28 
AnswerRe: Stuck on delegates / events Pin
BillWoodruff17-Dec-13 9:52
professionalBillWoodruff17-Dec-13 9:52 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 10:53
jxfdasilva17-Dec-13 10:53 
GeneralRe: Stuck on delegates / events Pin
BillWoodruff17-Dec-13 11:23
professionalBillWoodruff17-Dec-13 11:23 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 13:21
jxfdasilva17-Dec-13 13:21 
GeneralRe: Stuck on delegates / events Pin
Freak3017-Dec-13 23:17
Freak3017-Dec-13 23:17 
I assume your problem is, that you send the NMEA sentences to a different instance of the NmeaInterpreter than you hooked up your event handler to.

- You should create only one NmeaInterpreter instance in Form1.
- Hook up your event handler there.
- Pass a reference of the NmeaInterpreter instance to Form2 either as constructor parameter or by using a property as already demonstrated by someone else.
- Then you can further adapt the settings and pass the NMEA sentences in Form two.
- Now you should receive the result in the event handler in Form1.

If that doesn't work, you could still consider storing the NMEA sentences in some List and passing them back to Form1. Then you can can send them to the NmeaInterpreter instance from Form1 and receive the result.
The good thing about pessimism is, that you are always either right or pleasently surprised.

AnswerRe: Stuck on delegates / events Pin
BillWoodruff17-Dec-13 11:40
professionalBillWoodruff17-Dec-13 11:40 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 12:23
jxfdasilva17-Dec-13 12:23 
GeneralRe: Stuck on delegates / events Pin
BillWoodruff17-Dec-13 13:10
professionalBillWoodruff17-Dec-13 13:10 
AnswerRe: Stuck on delegates / events Pin
V.17-Dec-13 22:37
professionalV.17-Dec-13 22:37 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 22:53
jxfdasilva17-Dec-13 22:53 
GeneralRe: Stuck on delegates / events Pin
V.17-Dec-13 23:09
professionalV.17-Dec-13 23:09 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva18-Dec-13 0:51
jxfdasilva18-Dec-13 0:51 
AnswerRe: Stuck on delegates / events Pin
jxfdasilva18-Dec-13 9:10
jxfdasilva18-Dec-13 9:10 
Questionmenu strip in right side Pin
An@nd Rajan1016-Dec-13 20:14
professionalAn@nd Rajan1016-Dec-13 20:14 
AnswerRe: menu strip in right side Pin
Mycroft Holmes16-Dec-13 20:56
professionalMycroft Holmes16-Dec-13 20:56 
GeneralRe: menu strip in right side Pin
An@nd Rajan1016-Dec-13 21:01
professionalAn@nd Rajan1016-Dec-13 21:01 
AnswerRe: menu strip in right side Pin
lukeer16-Dec-13 21:19
lukeer16-Dec-13 21:19 
AnswerRe: menu strip in right side Pin
HobbyProggy17-Dec-13 4:59
professionalHobbyProggy17-Dec-13 4:59 
QuestionDesign pattern Pin
jeenamary16-Dec-13 19:33
jeenamary16-Dec-13 19:33 
JokeRe: Design pattern Pin
Mycroft Holmes16-Dec-13 20:54
professionalMycroft Holmes16-Dec-13 20:54 
AnswerRe: Design pattern Pin
Marco Bertschi17-Dec-13 0:09
protectorMarco Bertschi17-Dec-13 0:09 
AnswerRe: Design pattern Pin
BobJanova17-Dec-13 1:35
BobJanova17-Dec-13 1:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.