Click here to Skip to main content
16,005,038 members

Comments by rleonard55 (Top 5 by date)

rleonard55 22-Jan-12 21:39pm View    
*UPDATE* I F'd this up completely I jacked up one very important word in the original post I said I was trying to avoid a "cast" in the form logic. That was completely wrong. I'm trying to avoid a "invoke" in the form logic. That's why I mentioned threads. Sorry I hope that clears things up a bit.
rleonard55 22-Jan-12 21:28pm View    
Truthfully I may have put more on it than you intended, It was late and a long day…But what? You’re not going to quote the “condescension” part along with the rest? :) Seriously though I’m good, hope you are too. If you ignore any confusing or issued parts to my logic/code in the second part is there an easy way to call the singleCast delegate (like a void) that would put the compiler issue commented about to rest? singleCast(this, logEA) works fine in the first example but when I changed things in the second part singleCast is a variable instead of a method. Seriously I’m not certain I’m making any more sense than before, if not just disregard.
rleonard55 22-Jan-12 21:16pm View    
Alright man you got me here. I’ve explained to the best of my ability what I was hoping to accomplish. If it isn’t clear enough to convey what I’m looking for I’m at a loss. Not saying I’m doing a great job, I’m just not sure what else or how else to say it. I may need to put this away until I can better understand/articulate it.
rleonard55 22-Jan-12 21:10pm View    
Are you confusing the “syncInvoke !=null” line with the singleCast object being used to iterate through the GetInvocationList? If not you have complely lost me with the “the whole loop makes no sense” bit.
rleonard55 22-Jan-12 3:13am View    
I appreciate you taking the time to respond but some of it isn’t necessary. I’m certain if you took the time to read it again you would see that I never actually said what you quote me as saying. I am trying to find a way to not need to deal with any invoke logic (I never brought up case) in the form itself but keep it all in the class library. I’m aware there might be unclear or incorrect ideas conveyed here. This is a ‘question’ not an article. As I said I am new and trying to learn, I acknowledge (as I did in the original post) this may be a bad idea and that I don’t fully understand the ramifications of what I am attempting to do. I’m just trying it.

StatusLoggerUpdatedEventArgs is just derived from generic EvengArgs so that I could attach my own class inside of it. “Can singleCast become null?”..? In the first example? How could it? It’s inside and dictated by the foreach. IE it wouldn’t even be hit unless there was something there, right?

I will take a look at your article and see what I can learn from it. Unfortunately I don’t have the link so I can’t provide it here. As for finding some code online…I’m not going to apologize for finding something (even if I don’t understand it) and trying to use and learn from it. I have gleaned a great deal this way. I brought it up here to try and learn more. There are a lot of very smart people out there and it seems you certainly count yourself among them. I’ll look into the ideas you mentioned and see what I can figure out but condescension isn’t necessary. No one deserves anything from anyone else here except for mutual respect.