>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......
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement