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; }
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(); } }