Exemple #1
0
        private void CloseProc()
        {
            try
            {
                while (Flags.Initializing周辺機器)
                {
                    ;
                }

                if (Flags.StateMbed)
                {
                    LPC1768.ClosePort();
                }

                SpeechRecognition.Close();
            }
            catch
            {
                MessageBox.Show("例外発生");
            }
            finally
            {
                //データ保存を確実に行う
                if (!State.Save個別データ())
                {
                    MessageBox.Show("個別データの保存に失敗しました");
                }
            }
        }
Exemple #2
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.音声認識();
        }
Exemple #3
0
 private void RbVoiceOn_Checked(object sender, RoutedEventArgs e)
 {
     if (!Flags.VoiceOn)
     {
         SpeechRecognition.音声認識();
         Flags.VoiceOn = true;
     }
 }