public override void ViewDidLoad() { base.ViewDidLoad(); _presenter = new MainPagePresenter(); _presenter.SetView(this); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); _presenter = new MainPagePresenter(); _presenter.SetView(this); btnGetANumber = FindViewById <Button> (Resource.Id.btnGetANumber); tvNumberMessage = FindViewById <TextView> (Resource.Id.tvNumberMessage); btnGetANumber.Click += (object sender, EventArgs e) => { if (OnGetANumberClicked != null) { OnGetANumberClicked(this, EventArgs.Empty); } }; }