Skip to content

Instantly share code, notes, and snippets.

using System;
namespace AppTestForFastMapper
{
public class Bootstrapper
{
public void AutomapperInit()
{
//Inicialização dos Mapeamentos
AutoMapper.Mapper.CreateMap<PessoaDto,Pessoa>();
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
{
if (requestCode == VOICE)
{
if (resultCode == Result.Ok)
{
var matches = data.GetStringArrayListExtra(RecognizerIntent.ExtraResults);
if (matches.Count != 0)
{
App.fala = matches[0];
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using System;
using Xamarin.Forms;
using Autofac;
namespace BuscaPorVoz
{
public class SpeechPage : ContentPage
{
PessoaViewModel model;
using System;
using System.Linq;
using PropertyChanged;
using System.Collections.Generic;
using System.Windows.Input;
using Xamarin.Forms;
using System.Threading.Tasks;
using Connectivity.Plugin;
namespace BuscaPorVoz
public PessoaDetalhePage(Pessoa pessoa)
{
this.BackgroundColor = Color.White;
this.pessoa = pessoa;
this.backgroundImage = new Image
{
Source = ImageSource.FromResource(Constants.RetornarCaminhoParaImagens("backgroudColors.jpg")),
Aspect = Aspect.AspectFill,
public ListaPessoasPage()
{
this.listViewPessoas = new ListView
{
HasUnevenRows = true,
ItemTemplate = new DataTemplate(typeof(PessoaViewCell))
};
this.listViewPessoas.ItemTapped += async (sender, e) => await TrataCliqueNoListView(e.Item);
this.listViewPessoas.ItemSelected += (sender, e) =>
using System;
using Xamarin.Forms;
namespace RenderersEServices
{
public class App : Application
{
public App ()
{
using System;
using Android.Speech.Tts;
using System.Collections.Generic;
[assembly : Xamarin.Forms.Dependency (typeof(RenderersEServices.Droid.Falar))]
namespace RenderersEServices.Droid
{
public class Falar : Java.Lang.Object, RenderersEServices.IFalar, TextToSpeech.IOnInitListener
{
using System;
namespace RenderersEServices
{
public interface IFalar
{
void Conversar (string texto);
}
}