diff options
Diffstat (limited to 'slips/src/app/Marina.Web.UI/Registration.aspx.cs')
| -rw-r--r-- | slips/src/app/Marina.Web.UI/Registration.aspx.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/slips/src/app/Marina.Web.UI/Registration.aspx.cs b/slips/src/app/Marina.Web.UI/Registration.aspx.cs new file mode 100644 index 0000000..2418421 --- /dev/null +++ b/slips/src/app/Marina.Web.UI/Registration.aspx.cs @@ -0,0 +1,44 @@ +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 Registration : Page, ICustomerRegistrationView {
+ protected void Page_Load( object sender, EventArgs e ) {
+ ICustomerRegistrationPresenter presenter = new CustomerRegistrationPresenter( this );
+ uxRegisterButton.Click += delegate { presenter.RegisterCustomer( ); };
+ }
+
+ public string UserName() {
+ return Request.Params[ "uxUserNameTextBox" ];
+ }
+
+ public string Password() {
+ return Request.Params[ "uxPasswordTextBox" ];
+ }
+
+ public string FirstName() {
+ return Request.Params[ "uxFirstNameTextBox" ];
+ }
+
+ public string LastName() {
+ return Request.Params[ "uxLastNameTextBox" ];
+ }
+
+ public string PhoneNumber() {
+ return Request.Params[ "uxPhoneNumberTextBox" ];
+ }
+
+ public string City() {
+ return Request.Params[ "uxCityTextBox" ];
+ }
+
+ public void Display( IEnumerable< DisplayResponseLineDTO > response ) {
+ uxResponseMessagesRepeater.DataSource = response;
+ uxResponseMessagesRepeater.DataBind( );
+ }
+ }
+}
\ No newline at end of file |
