コード例 #1
0
        public MainPageViewModel()
        {
            speechRecognize = DependencyService.Get <ISpeechRecognize>();
            imagePickup     = DependencyService.Get <IImagePickup>();

            SpeechRecognizeCommand = new SpeechRecognizeCommand(speechRecognize);
            PickupImageCommand     = new PickupImageCommand(imagePickup);

            speechRecognize.PropertyChanged += speechRecognizePropertyChanged;
            imagePickup.PropertyChanged     += imagePickupPropertyChanged;
        }
コード例 #2
0
 public PickupImageCommand(IImagePickup imagePickup)
 {
     this.imagePickup = imagePickup;
 }