diff options
| author | mokhan <mokhan@da190166-9cfc-4ee1-ae03-434a172be219> | 2009-02-21 21:44:27 +0000 |
|---|---|---|
| committer | mokhan <mokhan@da190166-9cfc-4ee1-ae03-434a172be219> | 2009-02-21 21:44:27 +0000 |
| commit | 1dfdccb8118aeaa3cd844ac8de2a672c93312166 (patch) | |
| tree | 4b19e7f816ab1019f180a46b68572af4b66fe4bc /slips/src/app/Marina/Web/Views/WebView.cs | |
| parent | 42d66bcab8262c7b8b2452615df535e694a3ec1c (diff) | |
git-svn-id: http://svn.xp-dev.com/svn/mokhan-sait@2 da190166-9cfc-4ee1-ae03-434a172be219
Diffstat (limited to 'slips/src/app/Marina/Web/Views/WebView.cs')
| -rw-r--r-- | slips/src/app/Marina/Web/Views/WebView.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/slips/src/app/Marina/Web/Views/WebView.cs b/slips/src/app/Marina/Web/Views/WebView.cs new file mode 100644 index 0000000..f517479 --- /dev/null +++ b/slips/src/app/Marina/Web/Views/WebView.cs @@ -0,0 +1,27 @@ +using Marina.Web.Http;
+
+namespace Marina.Web.Views {
+ public class WebView< T > : IWebView< T > {
+ public WebView( string name, IViewLuggageTransporter< T > viewBag, IHttpGateway gateway ) {
+ this.name = name;
+ this.gateway = gateway;
+ this.viewBag = viewBag;
+ }
+
+ public string Name() {
+ return name;
+ }
+
+ public void Render() {
+ gateway.RedirectTo( this );
+ }
+
+ public void AddToBag( T slips ) {
+ viewBag.Add( slips );
+ }
+
+ private readonly string name;
+ private readonly IHttpGateway gateway;
+ private readonly IViewLuggageTransporter< T > viewBag;
+ }
+}
\ No newline at end of file |
