コード例 #1
0
ファイル: Translate.xaml.cs プロジェクト: 0m3r3r/ImgTex
        public Translate()
        {
            this.InitializeComponent();
            speech = new SpeechSynthesizer();
            mediaplayer = new MediaElement();

            lstLanguages.ItemsSource = SpeechSynthesizer.AllVoices;
            lstLanguages.SelectedValuePath = "Language";
            lstLanguages.SelectedValue = SpeechSynthesizer.DefaultVoice.Language;

            tr = new Translator();

            lblResult.Text = instructions;

            Windows.System.Display.DisplayRequest dr = new Windows.System.Display.DisplayRequest();
            dr.RequestActive();
        }
コード例 #2
0
 private void Translato_Click(object sender, RoutedEventArgs e)
 {
     
     Translator trans = new Translator();
     trans.okunanmetin = ImageText.Text;
     Frame.Navigate(typeof(Translate), trans);
     
 }