[Mono-list] Windows Forms...wah
Rodrigo Moya
rodrigo@ximian.com
21 Sep 2002 11:54:24 +0200
On Fri, 2002-09-20 at 17:06, fssc wrote:
> Many of use I'm sure come from visual ide development environments and
> sometimes we just like to populate a drop down list visually, could one do
> this with a MVC approach?
>
what do you mean by 'visually'? If you are talking about populating it
in the IDE, in that case, I suppose you mean you design visually and the
IDE generates the code, right?
If so, the IDE just has to generate the creation of the model, which in
most cases would be a:
model = new Model (data);
and then create the list box. That is exactly the same as with a non-MVC
list: the IDE will have the generate the code to fill in the list, so it
is exactly the same situation. Everything you can do with non-MVC, you
can do it with MVC, and a lot of things you can't do with non-MVC are
possible with MVC, so, yes, MVC is a more powerful approach, and does
not complicate things at all for the basic cases (fill a simple list box
and forget about it).
cheers
--
Rodrigo Moya <rodrigo@ximian.com>