public SpeechPage() { this.BackgroundColor = Color.Black; Content = new StackLayout(); MessagingCenter.Subscribe<SpeechPage>(this, "achou", (sender) => { this.model = App.container.Resolve<PessoaViewModel>(); this.model.GetPessoaPorNome_Voz(App.fala); }); MessagingCenter.Subscribe<SpeechPage>(this, "naoachou", async (sender) => { this.model = App.container.Resolve<PessoaViewModel>(); var pagina = Activator.CreateInstance<ListaPessoasPage>(); await this.Navigation.PushModalAsync(pagina); }); MessagingCenter.Subscribe<SpeechPage>(this, "cancelou", async (sender) => { this.model = App.container.Resolve<PessoaViewModel>(); var pagina = Activator.CreateInstance<ListaPessoasPage>(); await this.Navigation.PushModalAsync(pagina); }); }
protected override void OnAppearing() { base.OnAppearing(); this.model = App.container.Resolve <PessoaViewModel>(); this.model.ConfiguraNavigation(this.Navigation); this.model.CargaInicial(); }
protected override void OnAppearing() { base.OnAppearing(); this.model = App.container.Resolve<PessoaViewModel>(); this.model.ConfiguraNavigation(this.Navigation); this.model.CargaInicial(); }
protected override void OnAppearing() { Acr.UserDialogs.UserDialogs.Instance.ShowLoading("Carregando", Acr.UserDialogs.MaskType.Black); this.BindingContext = model = App.container.Resolve<PessoaViewModel>(); this.model.ConfiguraNavigation(this.Navigation); this.listViewPessoas.ItemsSource = model.GetPessoas(); Acr.UserDialogs.UserDialogs.Instance.HideLoading(); base.OnAppearing(); }
protected override void OnAppearing() { Acr.UserDialogs.UserDialogs.Instance.ShowLoading("Carregando", Acr.UserDialogs.MaskType.Black); this.BindingContext = model = App.container.Resolve <PessoaViewModel>(); this.model.ConfiguraNavigation(this.Navigation); this.listViewPessoas.ItemsSource = model.GetPessoas(); Acr.UserDialogs.UserDialogs.Instance.HideLoading(); base.OnAppearing(); }
protected override void OnAppearing() { this.model = App.container.Resolve <PessoaViewModel>(); base.OnAppearing(); }
protected override void OnAppearing() { this.model = App.container.Resolve<PessoaViewModel>(); base.OnAppearing(); }