Response from the user before the function completes AlertDialog.Builder like
messagebox but I want to wait until the user answers. How do I do?

                public bool test()
                {
                        bool tst=false;

                        AlertDialog.Builder builder = new AlertDialog.Builder 
(this); 
                        builder.SetTitle 
(Android.Resource.String.DialogAlertTitle);
                        builder.SetIcon 
(Android.Resource.Drawable.IcDialogAlert);
                        builder.SetMessage ("message");
                        builder.SetPositiveButton ("OK",(sender,e)=>{
                                tst=true;
                        });
                        builder.SetNegativeButton ("NO",(sender,e)=>{
                                tst=false;
                        });

                        builder.Show(); 

                        return tst;
                }

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/messagebox-for-android-tp5709956.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to