Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The documentation of mmFactoryGeneric is inadequate.
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01103621
Message ID:
01103892
Vues:
20
Hi Hayke,

still up to no good, eh? How are things going with the new business?

Hank

>I figured out some usage.
>
>            OakLeaf.MM.Main.Patterns.mmFactoryGeneric genFac = mmAppBase.Factory.CreateGenericFactory();
>            object tableControl = genFac.CreateObject("57ceb69243304587");
>
>            switch (tableControl.GetType().ToString())
>	    {
>                case "OakLeaf.MM.Main.Windows.Forms.mmTextBox":
>                    mmTextBox control = (mmTextBox)tableControl;
>                    control.Left = 10;
>                    control.Top = 10;
>                    control.Visible = true;
>                    this.ListPage.Controls.Add(control);
>                    break;
>
>		 default:
>                    break;
>	    }
>
>
>Wouldn’t it be useful to expand the classes table, or create a new related table, so it also contains binding information, location, etc?
>
>My goal is to create some forms completely generic and driven completely from a table.
>
>Someone ever tried this?
>
>Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform