public ApplicationViewModel(ISyllablesService syllablesService, ITranscriptionService transcriptionService, IPlaybackService playbackService) { Guard.NotNull(syllablesService, "syllablesService"); Guard.NotNull(transcriptionService, "transcriptionService"); Guard.NotNull(playbackService, "playbackService"); this._syllablesService = syllablesService; this._transcriptionService = transcriptionService; this._playbackService = playbackService; this._playbackService.PlaybackCompleted += this.PlaybackServiceOnPlaybackCompleted; this._inputText = ""; this._isInputTextBoxEnabled = true; this._outputMode = OutputMode.Transcription; this.OutputText = ""; this._words = new List<string>(); this.Commands = new ApplicationViewModelCommands(this); }
public ApplicationViewModel(ISyllablesService syllablesService, ITranscriptionService transcriptionService, IPlaybackService playbackService) { Guard.NotNull(syllablesService, "syllablesService"); Guard.NotNull(transcriptionService, "transcriptionService"); Guard.NotNull(playbackService, "playbackService"); this._syllablesService = syllablesService; this._transcriptionService = transcriptionService; this._playbackService = playbackService; this._playbackService.PlaybackCompleted += this.PlaybackServiceOnPlaybackCompleted; this._inputText = ""; this._isInputTextBoxEnabled = true; this._outputMode = OutputMode.Transcription; this.OutputText = ""; this._words = new List <string>(); this.Commands = new ApplicationViewModelCommands(this); }