예제 #1
0
 //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));
 }
예제 #2
0
 public SpeechService(IVolumeLanguageService volumeService)
 {
     _volumeService = volumeService ?? throw new ArgumentNullException(nameof(volumeService));
 }
예제 #3
0
 public VolumeLanguagesViewModel(INavigationService navigationServcie, IDialogService dialogService,
                                 IVolumeLanguageService volumeService) : base(navigationServcie, dialogService)
 {
     _volumeService = volumeService;
     Languages      = new ObservableCollection <VolumeLanguageModel>();
 }