0
good!
My problem is with the AlertDialog
asynchronous of Xamarin.Android
. I have a class with a method that assembles an alert with some fields... With the data of these fields, I assemble an object to make mine CRUD
.
The problem is time to call the AlertDialog
, when I call, it is mounted and then instantiates my object with the empty values of the AlertDialog
, for it is asynchronous.
llCompraAtiva.Click += delegate
{
this.RunOnUiThread(() => dadosCompra = Util.modalPagamento(this));
string teste = dadosCompra.NumCartao;
};
I thought I’d put something together Thread
, but I didn’t do well...
Summarizing: I need to enter the data in the inputs, then instantiate the object with the values of these inputs.
Can someone help me? Tks
What is the return of: Util.modalPagamento(this) ? It is a Task> ?
– FBatista
Forget it, I mistook it for Xamarin.Forms =D
– FBatista
Hahaha, no problem, helped me alot! D
– Diego Moreira