Ejemplo n.º 1
0
        public DetailsViewModel(INavigationService navigationService, ICognitiveClient cognitiveClient)
        {
            _navigationService = navigationService;
            _cognitiveClient   = cognitiveClient;
            AddNewImage        = new Command(async() => await OnAddNewImage());

            //Messenger.Default.Register<Person>(this, person => { Person = person; });
        }
Ejemplo n.º 2
0
 public MainViewModel(IDependencyService serviceLocator)
 {
     _serviceLocator  = serviceLocator;
     _cognitiveClient = _serviceLocator.Get <ICognitiveClient>();
     AddNewImage      = new Command(async() => await OnAddNewImage());
 }
 public MainViewModel()
 {
     AnalyzeImageCommand = new RelayCommand(async() => await OnAddNewImage());
     _cognitiveClient    = ServiceLocator.Current.GetInstance <ICognitiveClient>();
 }