Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2008 Server
>>I have a custom base class form that I use for all the forms in my app. Several custom properties exist in the base class, and then I may add a few more properties in each instance of the form when I use it.
>>
>>What will happen if I go back and add those other properties to my base class, but yet it will already exist in certain forms that I have already made based on that class and then added the new properties to them?
>
>I think it's going to work fine. The new properties will not be in bold anymore.
What about the values? Say my form-specific value was set to 1, but I make the default value of the base class be 0. Will the 1 still be honored?
Also, what about methods? I have begun to add a certain method and code in to almost every form, so now I want to go back and stub in the method name in the base class, but it will not have any code. Do you think this mess up the existing method code in the forms?
I did not realise I was going to want it everywhere, but now I see that I do. The code won't be in the baseclass, but I was hoping to get the method name there, with comments, without losing all the method code I have already placed in the forms.
Précédent
Suivant
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