Esempio n. 1
0
        public Sightings()
        {
            InitializeComponent();

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

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