protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.activity_signup_social); edtFullName = FindViewById <EditText>(Resource.Id.edtFullName); edtFullName.TextChanged += edtFullName_TextChanged; btnMale = FindViewById <RadioButton>(Resource.Id.btnMale); btnFemale = FindViewById <RadioButton>(Resource.Id.btnFemale); edtDOB = FindViewById <TextView>(Resource.Id.edtDOB); edtDOB.Click += DateSelect_OnClick; edtDOB.TextChanged += edtDoB_TextChanged; edtPhone = FindViewById <EditText>(Resource.Id.edtPhone); edtPhone.TextChanged += edtPhone_TextChanged; btnSignUp = FindViewById <Button>(Resource.Id.btnSignUp); btnSignUp.Click += delegate { btnSignUp_Click(); }; presenter = new SignUpPresenter(new NavigationService(this.Application)); presenter.SetView(this); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_signup_manual); presenter = new SignUpPresenter(new NavigationService(this.Application)); presenter.SetView(this); backToLogin = FindViewById <TextView>(Resource.Id.textSignIn); backToLogin.Click += delegate { presenter.GoToLogin(); }; edtUsername = FindViewById <EditText>(Resource.Id.edtUsername); edtUsername.TextChanged += edtUserName_TextChanged; edtPassword = FindViewById <EditText>(Resource.Id.edtPassword); edtPassword.TextChanged += edtPassword_TextChanged; edtConfirmPassword = FindViewById <EditText>(Resource.Id.edtConfirmPassword); edtConfirmPassword.TextChanged += edtConfirmPassword_TextChanged; edtFullName = FindViewById <EditText>(Resource.Id.edtFullName); edtFullName.TextChanged += edtFullName_TextChanged; edtEmail = FindViewById <EditText>(Resource.Id.edtEmail); edtEmail.TextChanged += edtEmail_TextChanged; btnMale = FindViewById <RadioButton>(Resource.Id.btnMale); btnFemale = FindViewById <RadioButton>(Resource.Id.btnFemale); edtDOB = FindViewById <TextView>(Resource.Id.edtDOB); edtDOB.Click += DateSelect_OnClick; edtDOB.TextChanged += edtDoB_TextChanged; edtPhone = FindViewById <EditText>(Resource.Id.edtPhone); edtPhone.TextChanged += edtPhone_TextChanged; btnSignUp = FindViewById <Button>(Resource.Id.btnSignUp); btnSignUp.Click += delegate { btnSignUp_Click(); }; btnSignUpFB = FindViewById <ImageView>(Resource.Id.FacebookButton); btnSignUpFB.Click += delegate { LoginFacebook(); }; }