CodeSmith Community
Your Code. Your Way. Faster!

WinformsLibrary?? can anyone give some sketchy details?

Latest post 02-21-2007 4:20 PM by GRAW. 20 replies.
  • 10-10-2006 11:16 AM

    • GRAW
    • Top 25 Contributor
    • Joined on 06-23-2006
    • Posts 157
    • Points 4,560

    WinformsLibrary?? can anyone give some sketchy details?

    I just got the latest version of the templates from SVN, and I see this WinFormsLibrary folder with some templates in it.

    Can anyone provide some details about how these should be used? 

    "Small is the number of them that see with their own eyes, and feel with their own hearts" Albert Einstein
    Filed under:
    • Post Points: 35
  • 10-10-2006 3:51 PM In reply to

    Re: WinformsLibrary?? can anyone give some sketchy details?

    John Roland has been working hard on providing a similar CRUD winforms application.  In the future it may also contain CAB templates as well, so stay tuned.

    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    Filed under: , ,
    • Post Points: 35
  • 10-10-2006 4:43 PM In reply to

    • GRAW
    • Top 25 Contributor
    • Joined on 06-23-2006
    • Posts 157
    • Points 4,560

    Re: WinformsLibrary?? can anyone give some sketchy details?

    WOW, I'm getting excited about this.

    I am already writing my applications using CAB so I can hardly wait to use these features, if you need a tester.

    Since we're talking about this, maybe you guys can give me some pointers.

    I am using winforms, and I have quite a few Entity lists, where I just have to display lists of entities.  I've set these up within CAB as WorkItems, so I can reuse/call them in different contexts.  The issue i'm faced with is that I have to filter these lists based on some criteria which should be provided by the calling SmartParts.  So let's say I have a WorkItem responsible for OrderReview.  And I want to call this use case from the context of a specific customer, I want to review the customer's orders, or for a specific product, I want to review all orders containing this specific product, etc.

    My plan is to setup some kind of EntityFilterCriteria object which can be created and populated by the calling context, passed to the target WorkItem, which would subsequently pass it on to the providers.

    I'm using the templates from 9/6, and from what I see in the code it seems like the <Entity>FilterBuilder is the best solution for this.  Is there anything better, or a better way to achieve this?

     

    GRAW 

    "Small is the number of them that see with their own eyes, and feel with their own hearts" Albert Einstein
    Filed under: , ,
    • Post Points: 35
  • 10-13-2006 2:20 AM In reply to

    • dSquared
    • Top 10 Contributor
    • Joined on 09-01-2004
    • Paris - France
    • Posts 519
    • Points 260,935

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Hi,

    for now i've added 2 templates (still in developpement though):

    first, an entity datagridview, with the following features:

    - take a tlist<entity> as input
    - display textbox column for string and numbers
    - display checkbox column for boolean
    - display combobox column for FK
    - column are readonly depending of the table column
    - TList<entity> properties are generated for FK Combo DataSource
    - an event is thrown when the focus change to a new entity (aka a new row)
    - embedded error provider for automatic validation, based upon the (customizable) validation rules.

    The second template is a form to edit a single entity, and apart from display, contains the same features.

     

    about your CAB question, my usual way to do this is the following:

    first i have a usercontrol for the smartpart, a presenter (actually a class that inherits from Controller) associated to it, and the workitem class.
    the State defined in the workitem is a TList, and this state is also defined in the presenter. the view access to the state through the presenter, so in my ui, i do things like: uxDataGridView.DataSource = Presenter.Products;
    if i need some filtering on the list, of course the filter form is on the view, so on the filtering button click, i call:

    Presenter.FilterProducts( criteria1, criteria2, etc); // you can call different overload depending of the filter form fill
    and then i create this method in the Presenter:

    internal void FilterProducts(string name, int categoryId) // create as many overload as needed
    {

    // here you can implete this via access to DataRepository, or even by creating a dotlucene index
    Products.RemoveFilter();
    Products.ApplyFilter(delegate (Product p) {return p.Name.Contains(name) && p.CategoryId == categoryId})

    the Products list will be automatically filtered, and as it is binded, your UI display will be automatically updated.
     

    John Roland
    ------------------------------
     Member of the .netTiers team
      http://en.serialcoder.net
    ------------------------------

    Filed under: , ,
    • Post Points: 65
  • 10-13-2006 7:37 AM In reply to

    • aisac
    • Top 500 Contributor
    • Joined on 09-10-2006
    • Posts 12
    • Points 300

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Thanks John. Very nice idea to generated WinForms Library.
    Would you please share the initialization code in nettiers.cst which will utilize these new templates of winformslibrary? I'm too much lazy to dig into it and write bymyself.
    Thanks
    • Post Points: 35
  • 10-13-2006 8:42 AM In reply to

    • dSquared
    • Top 10 Contributor
    • Joined on 09-01-2004
    • Paris - France
    • Posts 519
    • Points 260,935

    Re: WinformsLibrary?? can anyone give some sketchy details?

    yes of course, i need to merge with latest version first, but i will commit asap.

    John Roland
    ------------------------------
     Member of the .netTiers team
      http://en.serialcoder.net
    ------------------------------

    • Post Points: 5
  • 10-13-2006 10:58 AM In reply to

    • dSquared
    • Top 10 Contributor
    • Joined on 09-01-2004
    • Paris - France
    • Posts 519
    • Points 260,935

    Re: WinformsLibrary?? can anyone give some sketchy details?

    things just commited.
     

    John Roland
    ------------------------------
     Member of the .netTiers team
      http://en.serialcoder.net
    ------------------------------

    • Post Points: 35
  • 10-13-2006 2:44 PM In reply to

    • aisac
    • Top 500 Contributor
    • Joined on 09-10-2006
    • Posts 12
    • Points 300

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Thanks John, impressive! ;)
    • Post Points: 35
  • 10-16-2006 5:55 AM In reply to

    • Miketrix
    • Top 50 Contributor
    • Joined on 03-06-2006
    • Brussels
    • Posts 69
    • Points 1,885

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Hi all,

    I just wanted to mention that I was also interested in using NetTiers with CAB (and SC-SF as well) so any further help, code or example about it would be really appreciated. I'm new to CAB and SC-SF but not to NetTiers so now it would be really great if some CAB gourou could give us some "Guidelines" on how to developp a WinApp that rocks :-)

    Thank's

    Mike.
     

    • Post Points: 5
  • 10-19-2006 5:56 PM In reply to

    • NoelRAM
    • Top 500 Contributor
    • Joined on 08-25-2005
    • Caracas
    • Posts 9
    • Points 165

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Thanks for offer your time. I tried to use both templates but I could not edit the columns of the DataGridView, is it possible? Could it be possible to provide more information of how to use these two templates? I wish to input a list of tables, as the web app, and receive as output the code for several Windows forms, instead of processing each one.

    Thanks

    • Post Points: 35
  • 10-19-2006 6:31 PM In reply to

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Hi,
     
    These templates are still a work in progress and should not yet be used until there is a post that says they are complete enough to be used.

     
    On 10/19/06, NoelRAM <bounce-NoelRAM@codesmithsupport.com> wrote:

    Thanks for offer your time. I tried to use both templates but I could not edit the columns of the DataGridView, is it possible? Could it be possible to provide more information of how to use these two templates? I wish to input a list of tables, as the web app, and receive as output the code for several Windows forms, instead of processing each one.

    Thanks






    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 35
  • 10-25-2006 2:15 PM In reply to

    • mwerner
    • Top 50 Contributor
    • Joined on 03-02-2006
    • Sweden
    • Posts 106
    • Points 2,376

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Just started to look at this stuff and it looks promising, Just a thought, it is nice if you can hook up a BindingNavigator to your DataGridView (see attachment). However, the BindingSource that is set up inside the generated XXXDataGridView is protected now. If it was made available through a public property it would be possible to do that. Is there any particular reason not to do so?

    Curios...


    Best regards, Magnus Werner
    • Post Points: 35
  • 10-26-2006 1:46 AM In reply to

    • dSquared
    • Top 10 Contributor
    • Joined on 09-01-2004
    • Paris - France
    • Posts 519
    • Points 260,935

    Re: WinformsLibrary?? can anyone give some sketchy details?

    hi, no problem i do the change right now.

    I'll also add virtual mode management in the next days.

    any suggestion and help is welcome on these templates :-)

    ps: i'm also working on CAB sample applicatin, but I missing time to complete it, so ... 

    John Roland
    ------------------------------
     Member of the .netTiers team
      http://en.serialcoder.net
    ------------------------------

    Filed under: ,
    • Post Points: 65
  • 10-31-2006 12:22 PM In reply to

    • mwerner
    • Top 50 Contributor
    • Joined on 03-02-2006
    • Sweden
    • Posts 106
    • Points 2,376

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Have you had time to look at the Smart Client Software Factory http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/scsflp.asp ? What would be really neat is to make netTiers fit into this Framework. It's really neatly organized. The service layer could become a service, your generated WinForm controlls would be nice as SmartParts and so on.
    Best regards, Magnus Werner
    • Post Points: 35
  • 12-15-2006 6:02 PM In reply to

    • Miketrix
    • Top 50 Contributor
    • Joined on 03-06-2006
    • Brussels
    • Posts 69
    • Points 1,885

    Re: WinformsLibrary?? can anyone give some sketchy details?

    Hi all,

    I simply would push this post up because I'm also really interested in having further examples or guidances on how to integrate SCSF with NetTiers.

    About SCSF, it's really great, but i'm just dissappointed because it can handle very complex UI's, but all examples I can find on the Net (handsOnLabs are greats but...) are some basic forms with two views as a maximum, not interoperating that much, with few dependencies and/or, real life situations. I would be interested in viewing how we could get a real-life interface working in common scenarios, for example :

    1. display a list of objects...
    2. open a search dialog with parameters,
    3. search and display results, then double click on one item
    4. go to the detail of the object ...
    5. etc..
    (that's just an example that speaks to me, but any advanced sample would be great !!!!)

    If anybody has a good ressource or example project that could be shared ? It would really be helpful for many of us I think...

    Thank's by advance.

    Mike.
     

    Filed under: , ,
    • Post Points: 5
Page 1 of 2 (21 items) 1 2 Next > | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems