示例#1
0
文件: Form1.cs 项目: DSVAR/Yandex-Api
        private void Form1_Load(object sender, EventArgs e)
        {
            comboBox1.Text = comboBox1.Items[0].ToString();

            comboBox2.Text = comboBox2.Items[3].ToString();
            RK.lango();
            RK.langtw();


            textBox4.Text = Properties.Resources.speller;
        }
示例#2
0
文件: Form1.cs 项目: DSVAR/Yandex-Api
        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text == comboBox1.Items[0].ToString())
            {
                //if (bang.IsAlive)
                //    bang.Abort();
                MessageBox.Show("if");
                RK.langtw();

                detectedLanguage.deteck();
                translating.translate();
            }
            else
            {
                detectedLanguage.dec();
                RK.lango();
                RK.langtw();

                translating.translatNOT();
            }
        }