Exemplo n.º 1
0
        private void buttonBack_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            int           count = App.dataVariable.CountWordRepetition;
            List <MyWord> lists = BdTools.GetRandomListMyWord(count);

            WindowsManager.CreateWindowRepetition(lists);
        }
Exemplo n.º 2
0
        private void buttonSprint_Click_1(object sender, RoutedEventArgs e)
        {
            List <MyWord> lists = BdTools.GetRandomListMyWord(App.dataVariable.CountWordSprint);

            if (lists != null)
            {
                WindowsManager.CreateWindowSprint(lists);
            }
        }
Exemplo n.º 3
0
        private void buttonWordConstructor_Click(object sender, RoutedEventArgs e)
        {
            List <MyWord> lists = BdTools.GetRandomListMyWord(App.dataVariable.CountWordTrenings);

            if (lists != null)
            {
                WindowsManager.CreateWindowBreyShtorm_3(lists, true);
            }
        }
Exemplo n.º 4
0
        private void buttonRepetition_Click(object sender, RoutedEventArgs e)
        {
            int           count = App.dataVariable.CountWordRepetition;
            List <MyWord> lists = BdTools.GetRandomListMyWord(count);

            if (lists != null)
            {
                WindowsManager.CreateWindowRepetition(lists);
            }
        }
Exemplo n.º 5
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.º 6
0
        private void buttonAudirovanie_Click(object sender, RoutedEventArgs e)
        {
            List <MyWord> lists = BdTools.GetRandomListMyWord(App.dataVariable.CountWordTrenings);

            if (lists != null)

            {
                try
                {
                    WindowsManager.CreateWindowBreyShtorm_4(lists, true);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Внимание!", MessageBoxButton.OK, MessageBoxImage.Error);
                    return;
                }
            }
        }
Exemplo n.º 7
0
 private void buttonAnswerFalse_Click(object sender, RoutedEventArgs e)
 {
     if (isFinish)
     {
         if (isCurrentBool == isBoolLeft)
         {
             isAnswerTrue = true;
             PlaySound(App.dataVariable.SoundYes);
             StartAnimationV();
         }
         else
         {
             isAnswerTrue = false;
             PlaySound(App.dataVariable.SoundNo);
             StartAnimationX();
         }
     }
     else
     {
         this.Close();
         List <MyWord> lists = BdTools.GetRandomListMyWord(10);
         WindowsManager.CreateWindowSprint(lists);
     }
 }