Пример #1
0
        public ClassicPersonalAssistant(ISpeechRecognizerService speechRecognizerService, IAssistantService assistantService)
        {
            _speechRecognizerService = speechRecognizerService;
            _assistantService        = assistantService;

            InitializeComponent();
            UpdateCommandsList();
            _speechRecognizerService.CreateNewSynthesizer(commands.Command.Where(x => !x.IsConfimation).Select(x => x.CommandText).ToArray(), recognizer, Sara, listener, DefaultSpeechRecognized, RecognizerSpeechRecognized, ListenerSpeechRecognize);

            dispatcherTimer.Tick    += dispatcherTimer_Tick;
            dispatcherTimer.Interval = new TimeSpan(0, 0, 1);
            dispatcherTimer.Start();
            Sara.SpeakAsync(Properties.Resources.SaraIntroduce);
            PrepareSystemTray();
            contextMenu.MenuItems[0].Enabled = false;
        }
 public AccountController(
     IRoutinizeAccountLogService accountLogService,
     IAccountService accountService,
     IChallengeService challengeService,
     IAssistantService assistantService,
     IEmailSenderService emailSenderService,
     ITwoFactorAuthService tfaService,
     IGoogleRecaptchaService recaptchaService
     )
 {
     _accountLogService  = accountLogService;
     _accountService     = accountService;
     _challengeService   = challengeService;
     _assistantService   = assistantService;
     _emailSenderService = emailSenderService;
     _tfaService         = tfaService;
     _recaptchaService   = recaptchaService;
 }
Пример #3
0
 public AddNewCommand(IAssistantService assistantService)
 {
     _assistantService = assistantService;
     InitializeComponent();
 }