Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding the Toolbar Factory Method
Message
De
07/02/2005 12:28:36
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brésil
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Overriding the Toolbar Factory Method
Divers
Thread ID:
00984483
Message ID:
00984483
Vues:
57
Hi Kevin,

I think there is a mistake in MM .Net documentation under "Creating Your Own Custom Navigation Toolbar (Walkthrough)" topic.

In "Step 4: Overriding the Toolbar Factory Method" we see this
    public override mmNavigationToolbar CreateNavigationToolbar()
    {
        return new MyCustomNavToolBar();
    }
But I think the correct code would be:
    public override void CreateNavToolbar()
    {
        this.NavToolBar = (mmNavigationToolbar) new MyCustomNavToolBar();
    }
Regards,

Eugenio
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform