Exemplo n.º 1
0
        private void buttonKnow_Click(object sender, RoutedEventArgs e)
        {
            if (++count < words.Count)
            {
                BdTools.UpdateStateMyWord(words[count - 1], State.Know);

                InitDbContext(words[count]);
            }
            else
            {
                if (wordsTrenings.Count != 0)
                {
                    ObservableCollection <MyWord> total_50 = BdTools.ReadWord(App.dataVariable.CountSelectWord);
                    IEnumerable <MyWord>          resurse  = total_50.Except(wordsTrenings);
                    WindowBreyShtorm_2            wb2      = new WindowBreyShtorm_2(wordsTrenings.ToList(), resurse.ToList(), false);
                    wb2.Show();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Нет новых слов");
                    this.Close();
                }
            }
        }
Exemplo n.º 2
0
 private void ReadDictionary()
 {
     try
     {
         collection = BdTools.ReadWord();
     }
     catch (Exception)
     {
         return;
     }
 }
Exemplo n.º 3
0
 private void ReadDictionary()
 {
     try
     {
         collection = BdTools.ReadWord();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         return;
     }
 }
Exemplo n.º 4
0
        private void buttonWordTranslate_Click(object sender, RoutedEventArgs e)
        {
            List <MyWord> lists = BdTools.GetRandomListMyWord(App.dataVariable.CountWordTrenings);
            //ObservableCollection<MyWord> collec_5 = BdTools.ReadWord(3);
            ObservableCollection <MyWord> collectionTotal
                = BdTools.ReadWord();

            if (lists != null && collectionTotal != null)
            {
                IEnumerable <MyWord> enumerable = collectionTotal.Except(lists);
                WindowsManager.GreateWindowBreyShtorm_2(lists, enumerable.ToList(), true);
            }
        }
Exemplo n.º 5
0
 private void buttonNotKnow_Click(object sender, RoutedEventArgs e)
 {
     wordsTrenings.Add(words[count]);
     if (++count < words.Count && wordsTrenings.Count < App.dataVariable.CountWordLearning)
     {
         InitDbContext(words[count]);
     }
     else
     {
         ObservableCollection <MyWord> total_50 = BdTools.ReadWord(App.dataVariable.CountSelectWord);
         IEnumerable <MyWord>          resurse  = total_50.Except(wordsTrenings);
         //WindowBreyShtorm_2 wb2 = new WindowBreyShtorm_2(wordsTrenings.ToList(), resurse.ToList());
         //wb2.Show();
         WindowsManager.GreateWindowBreyShtorm_2(wordsTrenings.ToList(), resurse.ToList(), false);
         this.Close();
     }
 }