Example #1
0
        private void txtHastaneSil_Click(object sender, EventArgs e, Hastane hastane)
        {
            AlertDialog.Builder dialog = new AlertDialog.Builder(context);
            AlertDialog         alert  = dialog.Create();

            alert.SetTitle("Dikkat !");
            alert.SetMessage("Hastane silinirken hastaneye ait doktorlar, bölümler ve bütün randevular silinecek.");
            alert.SetButton("ONAYLIYORUM", (c, ev) =>
            {
                hastaneService.Sil(hastane.Id);
                Intent intent = new Intent(context, typeof(HastaneListeleActivity));
                context.StartActivity(intent);
            });

            alert.SetButton2("İPTAL", (c, ev) =>
            {
                Intent intent = new Intent(context, typeof(HastaneListeleActivity));
                context.StartActivity(intent);
            });
            alert.Show();
        }