Beispiel #1
0
 private void Tile_Test_Click(object sender, RoutedEventArgs e)
 {
     Funtion.baidu.token = Funtion.baidu.getToken();
     Funtion.ConsoleDisplay(Funtion.baidu.token, Console);
     Funtion.baidu.getAudio(Funtion.baidu.token, "这是一段测试语音");
     //baidu.getAudio("24.bb6c896c1b9e79fbab2b5f496681ac9a.2592000.1584161326.282335-18455211","这是一段测试语音");
     Funtion.ConsoleDisplay("这是一段测试语音", Console);
     Funtion.baidu.playSound();
 }
Beispiel #2
0
 private void ConsoleInput(string s)
 {
     if (isLoading == false)
     {
         if (s.Replace(" ", "") != "")
         {
             Funtion.ConsoleRun(s, Console);
         }
         else
         {
             Funtion.ConsoleDisplay("", Console);
         }
     }
 }
Beispiel #3
0
        private async void Tile_Restart_Click(object sender, RoutedEventArgs e)
        {
            MessageDialogResult result = await this.ShowMessageAsync("提示", "确定重启终端吗?", MessageDialogStyle.AffirmativeAndNegative);

            if (result == MessageDialogResult.Affirmative)
            {
                if (isLoading == true)
                {
                    await this.ShowMessageAsync("错误", "终端已在重启", MessageDialogStyle.Affirmative);

                    return;
                }
                Funtion.ConsoleInit(Console);
            }
        }
Beispiel #4
0
 private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
 {
     Funtion.ConsoleInit(Console);
 }