//ctor
 public SettingsViewModel(INavigationService navigationService, IDialogService dialogService, IThemeService themeService, IKeyboardTranscriptionService transcriptKeyboardService, IVolumeLanguageService volumeService, IFirstLanguage firstLanguageService) : base(navigationService, dialogService)
 {
     _themeService = themeService;
     _transcriptKeyboardService = transcriptKeyboardService;
     _volumeService             = volumeService;
     _firstLanguageService      = firstLanguageService;
     SetCurrentSettings();
     SwitchThemeCommand = new Command(SwitchThemeApp);
     SwitchTranskriptionKeyboardCommand = new Command(SwitchTranscriptionKeyboard);
     ChangeFirstLanguageCommand         = new Command(SwitchFirstLanguageShow);
     BackUpCommand              = new Command(async() => { await ChooseCreateBackUp(); });;
     RestoreBackUpCommand       = new Command(async() => { await RestoreBackup(); });
     ChangeVoiceLanguageCommand = new Command(async() => await NavigationService.NavigateToAsync <VolumeLanguagesViewModel>(this));
 }
 public SpeechService(IVolumeLanguageService volumeService)
 {
     _volumeService = volumeService ?? throw new ArgumentNullException(nameof(volumeService));
 }
Exemple #3
0
 public VolumeLanguagesViewModel(INavigationService navigationServcie, IDialogService dialogService,
                                 IVolumeLanguageService volumeService) : base(navigationServcie, dialogService)
 {
     _volumeService = volumeService;
     Languages      = new ObservableCollection <VolumeLanguageModel>();
 }