Good!
My problem is with AlertDialog
asynchronous Xamarin.Android
. I have a class with a method that I set an alert with some fields ... With the data from these fields, I mount an object to make my CRUD
.
The problem is when it is time to call AlertDialog
, when I call, it is mounted and then instantiate my object with the empty values of AlertDialog
, because it is asynchronous.
llCompraAtiva.Click += delegate
{
this.RunOnUiThread(() => dadosCompra = Util.modalPagamento(this));
string teste = dadosCompra.NumCartao;
};
I thought about putting something together with Thread
, but I did not do well ...
In short: I need to enter the data in the inputs, then instantiate the object with the values of those inputs.
Can anyone help me? Tks