Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lost in references!
Message
De
22/12/2009 13:32:03
 
 
À
22/12/2009 12:10:00
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01440166
Message ID:
01440185
Vues:
45
>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
Fil
Voir

Click here to load this message in the networking platform