Generating User Controls

Posts   
 
    
Alan
User
Posts: 4
Joined: 09-May-2005
# Posted on: 09-May-2005 06:06:02   

Hello,

Firstly, great product, its a pleasure to use.

I am interesting in the idea of generating user controls that have a grid embedded in them.

(I realize its a bit pointless buliding grids off entites (typed lists or views are more suitable) but its just to learn how to do it.)

I have written two templates, one that generates the .cs and one that generates the resx however they are not added to the project in the form that they would be when adding a user control in visual studio.

Current output,

<File RelPath="Grids\InvoiceLineItemGrid.cs" BuildAction="Compile" Generator="LLBLGen Pro" /> <File RelPath="Grids\InvoiceLineItemGrid.resx" BuildAction="None" Generator="LLBLGen Pro" />

What I need is

<File RelPath="Grids\InvoiceLineItemGrid.cs" BuildAction="Compile" Generator="LLBLGen Pro" /> <File RelPath="Grids\InvoiceLineItemGrid.resx" DependentUpon = "Grids\InvoiceLineItemGrid.cs" BuildAction="EmbeddedResource" Generator="LLBLGen Pro" />

I can write an app that will make this change, but I was wondering if you could suggest an easier way of doing this.

Any input would be appreciated.

Again, great product.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 09-May-2005 10:22:31   

Thanks for the compliments, Alan simple_smile

There's currently no way to automatically add the resx file to the vs.net project file the way you want it.

Frans Bouma | Lead developer LLBLGen Pro
Alan
User
Posts: 4
Joined: 09-May-2005
# Posted on: 10-May-2005 00:23:52   

Thats ok, it turns out that it doesn't prevent the generated user controls from working.