summaryrefslogtreecommitdiff
path: root/slips/src/app/Marina.Web.UI/ViewRegisteredBoats.aspx.cs
blob: ab9bd7757d18d95f9842e753fd0138b868f9fe45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 ViewRegisteredBoats : Page, IRegisteredBoatsView {
		protected void Page_Load( object sender, EventArgs e ) {
			new ViewRegisteredBoatsPresenter( this ).Initialize( );
		}

		public void Display( IEnumerable< BoatRegistrationDTO > boats ) {
			uxBoatsRepeater.DataSource = boats;
			uxBoatsRepeater.DataBind( );
		}
	}
}