EventArgs

  • Thread starter Thread starter John Sutor
  • Start date Start date
J

John Sutor

I have two different events firing the same event. How can I get the
type of event that called it (either leave or valuechanged or click)? I
have done this before but I cannot remember how.
 
HI,

Two events firing the same events?

I think you mean the same method that handle two events.

I think this is a design problem why are you using the same method IF you
want to know (and possible handle differentely) what event raised it?

What I would do is refactor it, I will create one method with the common
functionality and one method for each event that do the especifics actions
that you want to differentiate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top