private void nextWord() { try { label8.Text = Transletors.CountAllAnswer.ToString(); Transletors.Next(); if (chek == false) { textBoxWork.Text = Transletors.getTrainerWord().Word; string[] ans = Transletors.getTrainerWords(); buttonUa1.Text = ans[0]; buttonUa2.Text = ans[1]; buttonUa3.Text = ans[2]; buttonUa4.Text = ans[3]; button7_Click(null, null); } else { textBoxAnswer.Text = textBoxTranscription.Text = textBox1.Text = string.Empty; textBoxWork.Text = Transletors.getTrainerWord().Translete; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void nextWord() { try { toolStripStatusLabel1.Text = Transletors.CountAllAnswer.ToString(); Transletors.Next(); TransactionTextBox.Text = AnswerTextBox.Text = PromptTextBox.Text = QuestionTextBox.Text = string.Empty; QuestionTextBox.Text = Transletors.getTrainerWord().Translete; } catch (Exception ex) { MessageBox.Show(ex.Message); this.Close(); } }
private void nextWord() { try { label1.Text = Transletors.CountAllAnswer.ToString(); Transletors.Next(); playsound(); textBox1.Text = Transletors.getTrainerWord().Word; string[] m = Transletors.getTrainerWords(); button1.Text = m[0]; button2.Text = m[1]; button3.Text = m[2]; button4.Text = m[3]; } catch (Exception ex) { MessageBox.Show(ex.Message); this.Close(); } }