Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to subclass OpenFileDialog?
Message
 
À
19/01/2005 13:34:32
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
00977889
Message ID:
00978933
Vues:
34
Michel,

My 2 cents on this.
Try to use the decorator pattern by creating a custom class. I dont know if you care or not about the type of your custom class but I would do it this way: create a custom class that implements FileDialog(abstract class, to preserve type) and provide a private member of type OpenFileDialog to which you delegate to implement the FileDialog interfaces. Also provide a constructor that takes in an OpenFileDialog.

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform