public MainView() { InitializeComponent(); var hashService = DependencyService.Get <IHashService>(); var dataService = new MarvelDataService(hashService); BindingContext = new MainViewModal(dataService); }
public MainView() { InitializeComponent(); // TODO: IoC var hashService = new HashService(); var dataService = new MarvelDataService(hashService); DataContext = new MainViewModel(dataService); }
public CharacterView(Character character) { InitializeComponent(); _character = character; // TODO: IoC var hashService = DependencyService.Get <IHashService>(); var dataService = new MarvelDataService(hashService); BindingContext = new CharacterViewModel(dataService); }