diff options
| author | mo.khan <mo.khan@a0a4a051-f042-0410-9e78-9fae330bdb64> | 2008-01-05 07:16:52 +0000 |
|---|---|---|
| committer | mo.khan <mo.khan@a0a4a051-f042-0410-9e78-9fae330bdb64> | 2008-01-05 07:16:52 +0000 |
| commit | 8c137f229c36a777ead5cacb3350cb8692646292 (patch) | |
| tree | 92876c5da0ffd17767e38f94a44415ac27a3c73e /DesignPatterns/src/app/DesignPatterns.Adapter/Presenter.cs | |
| parent | cbdf42a6427eef7849d1ab7731f9185b410431d3 (diff) | |
git-svn-id: http://mokhan.googlecode.com/svn/trunk@9 a0a4a051-f042-0410-9e78-9fae330bdb64
Diffstat (limited to 'DesignPatterns/src/app/DesignPatterns.Adapter/Presenter.cs')
| -rw-r--r-- | DesignPatterns/src/app/DesignPatterns.Adapter/Presenter.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/DesignPatterns/src/app/DesignPatterns.Adapter/Presenter.cs b/DesignPatterns/src/app/DesignPatterns.Adapter/Presenter.cs new file mode 100644 index 0000000..32fe136 --- /dev/null +++ b/DesignPatterns/src/app/DesignPatterns.Adapter/Presenter.cs @@ -0,0 +1,18 @@ +using System.Collections.Generic;
+
+namespace DesignPatterns.Adapter {
+ public class Presenter {
+ private readonly IView _view;
+
+ public Presenter( IView view ) {
+ _view = view;
+ }
+
+ public void Initialize( ) {
+ IList< IDropDownListItem > items = new List< IDropDownListItem >( );
+ items.Add( new DropDownListItem( "Yes", "1" ) );
+ items.Add( new DropDownListItem( "No", "2" ) );
+ _view.AreYouHappy.BindTo( items );
+ }
+ }
+}
\ No newline at end of file |
