Example #1
0
        public Sightings()
        {
            InitializeComponent();

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

            this.BindingContext = sightingsViewModel;
        }
Example #2
0
 public SightingsViewModel(IIguanaApiService iguanaApiService)
 {
     _iguanaApiService = iguanaApiService;
     GetSightings();
 }