Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tips wanted for a .net newcomer
Message
From
19/02/2014 17:40:07
 
 
To
19/02/2014 14:39:14
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01594688
Message ID:
01594724
Views:
96
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform