private void LeaveClub_Click(object sender, System.EventArgs e) { AlertDialog.Builder alert = new AlertDialog.Builder(Activity); alert.SetTitle("Напускане"); alert.SetMessage("Сигурни ли сте, че искате да напуснете клуба?"); alert.SetPositiveButton("Да", async(senderAlert, args) => { var response = await RestManager.LeaveClub(_account.Username); if (response.IsSuccessStatusCode) { Intent intent = new Intent(Activity, typeof(UserProfileActivity)); StartActivity(intent); } }); alert.SetNegativeButton("Не", (senderAlert, args) => { return; }); Dialog dialog = alert.Create(); dialog.Show(); }