2 using System
.Web
.UI
.WebControls
;
3 using Castle
.Igloo
.UI
.Web
;
4 using Igloo
.Clinic
.Application
;
6 namespace Igloo
.Clinic
.Web
.Views
8 public partial class Drug
: Page
10 private DrugController _drugController
=null;
12 public DrugController DrugController
14 set { _drugController = value; }
17 protected void Page_Load(object sender
, EventArgs e
)
22 protected void DataSourceControler_ObjectCreating(object sender
, ObjectDataSourceEventArgs e
)
24 e
.ObjectInstance
= _drugController
;
27 protected void ButtonAdd_Click(object sender
, EventArgs e
)
29 _drugController
.Create(TextBoxNom
.Text
, TextBoxDescription
.Text
);