locked
Application with simple and complex screens - What pattern is appropriate? RRS feed

  • Question

  • Hi Everybody

    I am a bit unsure about using UI Patterns when the application consists of simple and complex screens.
    My definition of simple is a screen with about 20 properties (mostly independent). My definition of complex screen is a screen with more than 20 properties with dependencies between the properties (e.g. If i select a product on the screen, then the Product Types combobox must fill with the Types associated to the selected Product.)

    Actually I need to show up to 4 objects that contain other objects. The total of properties to show is about 60.

    I found articles that say that Passive View is a good choice for simple screens (and all the examples usally show a Person screen or a Login screen.

    Would I create a view Interface with all the 60 properties to get and set and fill and read them from the presenter? Or would I define a DataBind(IEnumerable<T> data) method? And where would the binding logic be implemented (in the view, in the presenter...)?

    Is it a good way to mix UI Patterns in an application? I think not...

    Any idea is welcome.

    Best regards
    Yannik

    Saturday, January 22, 2011 11:14 AM

Answers

  • Well MVP is a good choice, MSDN site has a decent overview of the different choices there. Probably worth taking a look at MVVM too, more aimed at wpf/sl but still applicable pattern
    http://pdkm.spaces.live.com/
    Sunday, January 23, 2011 10:01 PM

All replies

  • What technology are you looking at using to present the data, for me certain patterns work better on the web/desktop/mobile.
    http://pdkm.spaces.live.com/
    Saturday, January 22, 2011 8:52 PM
  • I am developing a desktop application using Winforms with C#.
    Sunday, January 23, 2011 7:55 AM
  • Well MVP is a good choice, MSDN site has a decent overview of the different choices there. Probably worth taking a look at MVVM too, more aimed at wpf/sl but still applicable pattern
    http://pdkm.spaces.live.com/
    Sunday, January 23, 2011 10:01 PM