Exemplo n.º 1
0
        public Sightings()
        {
            InitializeComponent();

            AppContainer.Initialize();
            _iguanaApiService = AppContainer.Resolve <IIguanaApiService>();
            var sightingsViewModel = AppContainer.Resolve <SightingsViewModel>();

            this.BindingContext = sightingsViewModel;
        }
Exemplo n.º 2
0
 public SightingsViewModel(IIguanaApiService iguanaApiService)
 {
     _iguanaApiService = iguanaApiService;
     GetSightings();
 }