Information générale
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Network:
Windows 2000 Server
>One of my first questions is, should I use Windows Forms or WPF Forms?
>In VFP I have sub-classed all the base classes, some of them more than one level. Should I do the same in .net also? If so, how?
In C#/Java type languages classes are much more light-weight - your vfp instincts to keep it down to a low couple of thousand objects at most can be raised quite a bit. Every time you think about subclassing in "non-vfp" consider if it is not better to add an object to the class in question: much easier to add common behaviour to different controls, less typing. You might still subclass, but in the subclass not implement the methods in detail, but just use those of the added object. On the matter of typing: You will type more boilerplate code, from type declarations to interfaces needing to be implemented. There are compiler tricks to eliminate much of that - keep looking for a style that fits your mode of thinking.
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