protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); loginField = FindViewById <EditText>(Resource.Id.ETlogin); pasFiesld = FindViewById <EditText>(Resource.Id.ETpassword); // ResponseText = FindViewById<TextView>(Resource.Id.textViewResponse); presenter = new Presenter_Main(this); login = FindViewById <Button>(Resource.Id.btnlogin); login.Click += Login_Click; }
protected override void OnDestroy() { base.OnDestroy(); login.Click -= Login_Click; presenter = null; }