summaryrefslogtreecommitdiff
path: root/slips/src/app/Marina.Web.UI/RegisterBoat.aspx.cs
blob: 5fa77510f168ab8f7e62b67f9c6d9ed481f89718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Collections.Generic;
using System.Web.UI;
using Marina.Presentation.DTO;
using Marina.Presentation.Presenters;
using Marina.Presentation.Views;

namespace Marina.Web.UI {
	public partial class RegisterBoat : Page, IRegisterBoatView {
		protected void Page_Load( object sender, EventArgs e ) {
			IRegisterBoatPresenter presenter = new RegisterBoatPresenter( this );
			uxRegisterBoatButton.Click += delegate { presenter.SubmitRegistration( ); };
		}

		public void Display( IEnumerable< DisplayResponseLineDTO > response ) {
			uxResponseRepeater.DataSource = response;
			uxResponseRepeater.DataBind( );
		}
	}
}