Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            App._naviTest = FrameTest.NavigationService;
            App._naviConf = FrameConf.NavigationService;
            App._naviHelp = FrameHelp.NavigationService;
            App._naviInfo = FrameInfo.NavigationService;

            FrameTest.NavigationUIVisibility = NavigationUIVisibility.Hidden;
            FrameConf.NavigationUIVisibility = NavigationUIVisibility.Hidden;
            FrameHelp.NavigationUIVisibility = NavigationUIVisibility.Hidden;
            FrameInfo.NavigationUIVisibility = NavigationUIVisibility.Hidden;

            this.MouseLeftButtonDown += (sender, e) => this.DragMove();//ウィンドウ全体でドラッグ可能にする

            this.DataContext = State.VmMainWindow;


            GetInfo();

            //カレントディレクトリの取得
            State.CurrDir = Directory.GetCurrentDirectory();

            //試験用パラメータのロード
            State.LoadConfigData();

            InitDevices();    //非同期処理です

            InitMainWindow(); //メインフォーム初期

            SpeechRecognition.Init();
            SpeechRecognition.set();
            Flags.VoiceOn = true;
            SpeechRecognition.音声認識();
        }
Пример #2
0
 private void RbVoiceOn_Checked(object sender, RoutedEventArgs e)
 {
     if (!Flags.VoiceOn)
     {
         SpeechRecognition.音声認識();
         Flags.VoiceOn = true;
     }
 }