Пример #1
0
 public MainViewModel(HeadlightViewModel headlightViewModel, ConnectionViewModel connectionViewModel,CameraViewModel cameraViewModel,ISpeechRecognizer speechRecognizer)
 {
     ViewModelsContainer.HeadlightViewModel = headlightViewModel;
     ViewModelsContainer.ConnectionViewModel = connectionViewModel;
     ViewModelsContainer.CameraViewModel = cameraViewModel;
     _speechRecognizer = speechRecognizer;
     _speechRecognizer.InitializeRecognizer();
 }
Пример #2
0
 public MainViewModel(HeadlightViewModel headlightViewModel, ConnectionViewModel connectionViewModel, CameraViewModel cameraViewModel, ISpeechRecognizer speechRecognizer)
 {
     ViewModelsContainer.HeadlightViewModel  = headlightViewModel;
     ViewModelsContainer.ConnectionViewModel = connectionViewModel;
     ViewModelsContainer.CameraViewModel     = cameraViewModel;
     _speechRecognizer = speechRecognizer;
     _speechRecognizer.InitializeRecognizer();
 }