public MainViewModel(HeadlightViewModel headlightViewModel, ConnectionViewModel connectionViewModel,CameraViewModel cameraViewModel,ISpeechRecognizer speechRecognizer) { ViewModelsContainer.HeadlightViewModel = headlightViewModel; ViewModelsContainer.ConnectionViewModel = connectionViewModel; ViewModelsContainer.CameraViewModel = cameraViewModel; _speechRecognizer = speechRecognizer; _speechRecognizer.InitializeRecognizer(); }
public MainViewModel(HeadlightViewModel headlightViewModel, ConnectionViewModel connectionViewModel, CameraViewModel cameraViewModel, ISpeechRecognizer speechRecognizer) { ViewModelsContainer.HeadlightViewModel = headlightViewModel; ViewModelsContainer.ConnectionViewModel = connectionViewModel; ViewModelsContainer.CameraViewModel = cameraViewModel; _speechRecognizer = speechRecognizer; _speechRecognizer.InitializeRecognizer(); }