T
Thorbjørn Jørgensen
Hi
I am currently creating a WLAN simulation problem and have encountered a
problem...
I have two classes (Channel and RadioLayer), and for instance create the
following objects:
Channel channel = new Channel();
RadioLayer Radio1 = new RadioLayer();
RadioLayer Radio2 = new RadioLayer();
What I would like to do is to raise an Event in the channel object (no
problem) and only trap this event in Radio1 and not in Radio2 (the
problem!)... Is there a nice way to do this?
I am trying to use events as an interface between the layers, because it
makes it much easier to create new components with new functionality, but it
is causing me some problems. A solution could be to raise the event, and
then parse the event for relevance in all of the RadioLayer object, but
since there can be a lot of those, I think it will degrade my performance a
lot.
I am currently using VS2003, so is there improvements that will help me in
this situation in dotnet 2.0 (VS2005)?
Is there another smart way to solve the problem?
I am looking forward to your comments...
Regards...
Thorbjørn
I am currently creating a WLAN simulation problem and have encountered a
problem...
I have two classes (Channel and RadioLayer), and for instance create the
following objects:
Channel channel = new Channel();
RadioLayer Radio1 = new RadioLayer();
RadioLayer Radio2 = new RadioLayer();
What I would like to do is to raise an Event in the channel object (no
problem) and only trap this event in Radio1 and not in Radio2 (the
problem!)... Is there a nice way to do this?
I am trying to use events as an interface between the layers, because it
makes it much easier to create new components with new functionality, but it
is causing me some problems. A solution could be to raise the event, and
then parse the event for relevance in all of the RadioLayer object, but
since there can be a lot of those, I think it will degrade my performance a
lot.
I am currently using VS2003, so is there improvements that will help me in
this situation in dotnet 2.0 (VS2005)?
Is there another smart way to solve the problem?
I am looking forward to your comments...
Regards...
Thorbjørn