public async void DeletePlayer(object sender, EventArgs args) { var awnser = await DisplayAlert("Delete player", "Are you sure you do want delete this player?", "Yes", "No"); if (awnser == false) { await DisplayAlert("Delete action", "Delete canceled", "Ok"); } else { Label lblDelete = (Label)sender; TapGestureRecognizer tapGest = (TapGestureRecognizer)lblDelete.GestureRecognizers[0]; var player = tapGest.CommandParameter as Player; AccessDatabase db = new AccessDatabase(); db.DeletePlayer(player); UpdateScreen(); btnHome.IsVisible = true; } }