protected override void OnDestroy() { if (loadCoffeesBtn != null) { loadCoffeesBtn.Click -= onClickButton; } viewModel?.Cleanup(); base.OnDestroy(); }