Doubt regarding classlilbrary.
-
Can a classlibrary detect an event occurrance in the main form which uses the class library. if so how to detect that?:confused:
If a class exposes an event, and another class subscribes to it, then where those classes come from is irrelevant.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
Can a classlibrary detect an event occurrance in the main form which uses the class library. if so how to detect that?:confused:
Events are only detected on Windows Forms. So you can pass whatever action you want to your class library from your Form's raised event. Dont worry about the class library being unable to handle events. Allow the Form to do that.
Live in fragments no longer. Only connect.