Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lost in references!
Message
From
22/12/2009 13:32:03
 
 
To
22/12/2009 12:10:00
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01440166
Message ID:
01440185
Views:
44
>I hate it.. realy hate.. make a references take more time then programming :(((
>
>Assembly1. Application has LicenseManager
>Assembly2. LicenseManager has 3 forms based on BaseForms.
>Assembly3. BaseForms.. in the global loading event has code
>
>MyApplication.LicenseManager.ValidateLicense(Me.formclsid)
>
>and now I have a problem! Its cycle reference!
>and compile process fail..
>
>Then appears a question.
>How to write global code which will check a license when form starting If I can't make references!
>Need idea..

You will probably have to do this via interfaces.
I.E. create an interface in a common assembly that specifies the methods and properties that a class must expose and mark the class as implementing the interface. You can then reference the class instance via the interface. But it's not possible to judge from the information you give where best to do this......
Previous
Reply
Map
View

Click here to load this message in the networking platform