private void BtnStartTest_Click(object sender, RoutedEventArgs e) { if (QuizzDictionary.nova.Count > 0) { BtnCheck.Visibility = Visibility.Visible; TbWordMain.AppendText(QuizzDictionary.nova.Keys.First()); BtnStartTest.Visibility = Visibility.Hidden; TbTranslate.Focus(); } else { MessageBox.Show("You made a test with no words in it !", "Change your testing settings !", MessageBoxButton.OK); this.Close(); TestingSettings testing = new TestingSettings(); testing.ShowDialog(); } }
///Methods /// /// private void ClearTextBoxes() { TbWordMain.Clear(); TbTranslate.Clear(); }