public MainPageViewModel() { speechRecognize = DependencyService.Get <ISpeechRecognize>(); imagePickup = DependencyService.Get <IImagePickup>(); SpeechRecognizeCommand = new SpeechRecognizeCommand(speechRecognize); PickupImageCommand = new PickupImageCommand(imagePickup); speechRecognize.PropertyChanged += speechRecognizePropertyChanged; imagePickup.PropertyChanged += imagePickupPropertyChanged; }
public PickupImageCommand(IImagePickup imagePickup) { this.imagePickup = imagePickup; }