You're going to add the New classes from the fluent fixture code out
there by Aaron? Just wondering how the IBuilder interface (which is
empty at the moment) would fit into this.
For example I want to build an about box which would be in the
framework and common, consumers would just set the title and image
(with other information coming from the calling assembly through
reflection). Jeff Atwood put together an about box similar to this so
I was looking at how to fold it in here using the presenter/view/
callbacks.
I can do it with some ugly code like this:
// AboutBoxAdapter is an empty dialog with no min/max button, etc.
IWindowAdapter adapter = new AboutBoxAdapter();
adapter.ChangeCaption("About Bank Teller");
adapter.Modal = true;
adapter.Height = 400;
adapter.Width = 550;
// AboutBoxView is a user control implementing IAboutBoxView :
IView<IAboutBoxViewCallbacks>
AboutBoxPresenter presenter = new AboutBoxPresenter(new
AboutBoxView());
presenter.DisplayIn(adapter);
presenter.Start();
However if we have the fluent builder class this might work better:
New.AboutBoxPresenter
.WithCaption("About Bank Teller")
.WithHeight(400)
.WithWidth(550)
.IsModal(true)
.Start();
The AboutBoxPresenterCreator would hide the adapter and all the stuff
to make that work and delegate to the presenter call to Start()
>
http://thebeelog.com- Hide quoted text -
>
> - Show quoted text -