public override void Execute(InvokerArgs args)
        {
            BreweriesListViewModel VM = (args as ViewModelInvokerArgs).ViewModelAs <BreweriesListViewModel> ();

            WebService.BreweriesReceived += (object sender, EventArgs e) => {
                VM.Breweries = new ObservableCollection <Brewery> ((e as BreweriesReceivedEventArgs).Breweries);
                VM.Ready     = true;
            };
            WebService.Execute();
        }
Example #2
0
        public BreweriesListView(BreweriesListViewModel vm)
        {
            BindingContext = VM = vm;

            BuildUI();
        }