Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tips wanted for a .net newcomer
Message
De
19/02/2014 17:40:07
 
 
À
19/02/2014 14:39:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01594688
Message ID:
01594724
Vues:
95
>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
Fil
Voir

Click here to load this message in the networking platform