Exemplo n.º 1
0
        async void CargarEmocion()
        {
            Loading(true);

            var bd = new ServicioBaseDatos();

            emocion = await bd.ObtenerEmocion();

            if (emocion == null)
            {
                emocion = new Emocion()
                {
                    Id = 0, Nombre = "", Score = 0, Foto = ""
                };
                ToolbarItems.RemoveAt(1);
            }
            else
            {
                btnAnalizar.IsEnabled = true;
            }

            BindingContext = emocion;

            Loading(false);
        }