private void Check_Unchecked(object sender, RoutedEventArgs e) { Easy_Mode.Visibility = Visibility.Hidden; Txt_Get.Visibility = Visibility.Visible; Lbl_Correct.Visibility = Visibility.Visible; Txt_Get.Focus(); }
//конструктор класса public LearnWindow(string path) { InitializeComponent(); this.words.path = path; words.ReadFile(this.words.Words, this.words.path); statisticWord = new Dictionary <string, StatisticWord>(); WordsToStatistic(); total_true_answer = 0; total_skip_words = 0; total_words = 0; NewWord(); Txt_Get.Focus(); }
// //обновить слово дляизучения public void NewWord() { Lbl_Word.Content = learnWords.Rnd_Word(words.Words); foreach (var item in this.words.Words) { if (Lbl_Word.Content.ToString().Equals(item.Key)) { Lbl_Transcription.Content = "[" + item.Value.Transcription + "]"; } if (Lbl_Word.Content.ToString().Equals(item.Value.Translate)) { Lbl_Transcription.Content = "-"; } } Lbl_Check.Content = ""; Lbl_Correct.Content = ""; Txt_Get.Text = ""; Txt_Get.Focus(); }
private void Btn_StatisticsHide_Click(object sender, RoutedEventArgs e) { Statistics.Visibility = Visibility.Hidden; Txt_Get.Focus(); }