2 using System
.Collections
.Generic
;
3 using Castle
.Igloo
.Attributes
;
4 using Igloo
.Clinic
.Domain
;
5 using Igloo
.Clinic
.Application
;
6 using Castle
.Igloo
.UI
.Web
;
8 namespace Igloo
.Clinic
.Web
.Views
10 public partial class Index
: Page
12 private PatientController _patientController
= null;
13 private IList
<Patient
> _patients
= null;
16 public IList
<Patient
> Patients
18 set { _patients = value; }
21 public PatientController PatientController
23 set { _patientController = value; }
26 protected void Page_Load(object sender
, EventArgs e
)
30 GridViewBlog
.DataSource
= _patientController
.RetrievePatients();
31 GridViewBlog
.DataBind();
35 GridViewBlog
.DataSource
= _patients
;
36 GridViewBlog
.DataBind();
40 protected void Button1_Click(object sender
, EventArgs e
)
42 _patientController
.Checkout();