public AccountView(Activity activity, AccountPresenter presenter) : base(activity) { this.activity = activity; this.presenter = presenter; activity.SetContentView(Resource.Layout.account); this.btnLogout = activity.FindViewById <Button>(Resource.Id.account_btn_logout); this.btnLogout.Click += btnLogout_Click; this.btnAddPromoCode = activity.FindViewById <Button>(Resource.Id.account_btn_addPromoCode); this.btnAddPromoCode.Click += btnAddPromoCode_Click; this.tvUsername = activity.FindViewById <TextView> (Resource.Id.account_tv_user_name); this.tvPromoCode = activity.FindViewById <EditText>(Resource.Id.account_tv_promo_code); this.tvVersion = activity.FindViewById <TextView> (Resource.Id.account_tv_version); this.progressBar = activity.FindViewById <ProgressBar> (Resource.Id.account_progressbar); this.accountUsernameContainer = activity.FindViewById <View> (Resource.Id.account_user_name_container); ShowUserInfo(""); setAllEnabled(true); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); this.presenter = new AccountPresenter(this); }