private void HandleNegativeButtonClick(object sender, DialogClickEventArgs e) { var dialog = (AlertDialog)sender; using (var db = new IncomeManager()) { db.DeleteItem(income); } dialog.Dismiss(); }