public async Task Validate() { SALLab14.ServiceClient client = new SALLab14.ServiceClient(); string myD = Android.Provider.Settings.Secure.GetString( ContentResolver, Android.Provider.Settings.Secure.AndroidId); Result = await client.ValidateAsync(this); }
private async void Validate() { var Client = new SALLab14.ServiceClient(); var Result = await Client.ValidateAsync(this); AlertDialog.Builder Builder = new AlertDialog.Builder(this); AlertDialog Alert = Builder.Create(); Alert.SetTitle("Resultado de la verificación"); Alert.SetIcon(Resource.Drawable.Icon); Alert.SetMessage($"{Result.Status}\n{Result.FullName}\n{Result.Token}"); Alert.SetButton("Ok", (s, e) => { }); Alert.Show(); }
private async void ButtonValidate_Click(object sender, System.EventArgs e) { var client = new SALLab14.ServiceClient(); var result = await client.ValidateAsync(this); var builder = new AlertDialog.Builder(this); var alert = builder.Create(); alert.SetTitle("Resultado de la verificación"); alert.SetIcon(Resource.Drawable.Icon); alert.SetMessage($"{result.Status}\n{result.FullName}\n{result.Token}"); alert.SetButton("Ok", (s, ev) => { }); alert.Show(); }
async Task Validar() { var Client = new SALLab14.ServiceClient(); string Email = "*****@*****.**"; string Pass = "******"; var Result = await Client.ValidateAsync(this); Android.App.AlertDialog.Builder Builder = new AlertDialog.Builder(this); AlertDialog Alert = Builder.Create(); Alert.SetTitle("Resultado de la verificación"); Alert.SetIcon(Resource.Drawable.Icon); Alert.SetMessage($"{Result.Status}\n{Result.FullName}\n{Result.Token}"); Alert.SetButton("OK", (s, e) => { }); Alert.Show(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); FindViewById <Button>(Resource.Id.buttonValidate).Click += async(sender, e) => { var client = new SALLab14.ServiceClient(); var result = await client.ValidateAsync(this); AlertDialog.Builder builder = new AlertDialog.Builder(this); AlertDialog alert = builder.Create(); alert.SetTitle("Resultado de la verificación"); alert.SetIcon(Resource.Drawable.Icon); alert.SetMessage($"{result.Status}\n{result.FullName}\n{result.Token}"); alert.SetButton("OK", (s, ev) => { }); alert.Show(); }; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); var buttonValidate = FindViewById <Button>(Resource.Id.buttonValidate); buttonValidate.Click += async(sender, e) => { var Client = new SALLab14.ServiceClient(); var Result = await Client.ValidateAsync(this); Android.App.AlertDialog.Builder Builder = new AlertDialog.Builder(this); AlertDialog Alert = Builder.Create(); Alert.SetTitle("Resultado de la varificación"); Alert.SetIcon(Resource.Drawable.Icon); Alert.SetMessage($"{Result.Status}\n{Result.FullName}\n{Result.Token}"); Alert.SetButton("Ok", (s, e1) => { }); Alert.Show(); }; }