protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.LoginView); m_edtEmail = FindViewById <EditText>(Resource.Id.edtEmail); m_edtEmail.TextChanged += m_edtEmail_TextChanged; m_edtPassword = FindViewById <EditText>(Resource.Id.edtPassword); m_edtPassword.TextChanged += m_edtPassword_TextChanged; m_btnLogin = FindViewById <Button>(Resource.Id.btnLogin); m_btnLogin.Touch += m_btnLogin_Touch; m_btnRegister = FindViewById <Button>(Resource.Id.btnRegister); m_btnRegister.Touch += m_btnRegister_Touch; var app = MvpDemoApplication.GetApplication(this); m_presenter = (LoginPresenter)app.Presenter; m_presenter.SetView(this); app.CurrentActivity = this; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.SignUpView); m_edtEmail = FindViewById <EditText>(Resource.Id.edtEmail); m_edtEmail.TextChanged += m_edtEmail_TextChanged; m_edtName = FindViewById <EditText>(Resource.Id.edtEmail); m_edtName.TextChanged += m_edtName_TextChanged; m_edtAddress = FindViewById <EditText>(Resource.Id.edtEmail); m_edtAddress.TextChanged += m_edtAddress_TextChanged; m_edtPassword = FindViewById <EditText>(Resource.Id.edtPassword); m_edtPassword.TextChanged += m_edtPassword_TextChanged; m_edtConfirmPassword = FindViewById <EditText>(Resource.Id.edtConfirmPassword); m_edtConfirmPassword.TextChanged += m_edtConfirmPassword_TextChanged; m_btnSignUp = FindViewById <Button>(Resource.Id.btnSignUp); m_btnSignUp.Touch += m_btnSignUp_Touch; var app = MvpDemoApplication.GetApplication(this); m_presenter = app.Presenter as SignUpPresenter; m_presenter.SetView(this); app.CurrentActivity = this; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.MainView); var app = MvpDemoApplication.GetApplication(this); m_presenter = (MainPresenter)app.Presenter; m_presenter.SetView(this); app.CurrentActivity = this; }
public NavigationService(MvpDemoApplication application) { m_application = application; }