Exemplo n.º 1
0
 private void GenerateBergerPractice()
 {
     if (bergerPracticeEncode)
     {
         lblBergerTaskExplanation_Practice.Content = "Зашифруйте:";
         lblTask_Practice.Content = BergerService.generateEncode();
     }
     else
     {
         lblBergerTaskExplanation_Practice.Content = "Расшифруйте:";
         lblTask_Practice.Content = BergerService.generateDecode();
     }
 }
Exemplo n.º 2
0
        private void GenerateBergerTest()
        {
            Result result = results["Berger"];

            if (result.currentTestNumber <= 3)
            {
                lblBergerTaskExplanation.Content = "Зашифруйте:";
                lblBergerTask.Content            = BergerService.generateEncode();
            }
            else if (result.currentTestNumber > 3 && result.currentTestNumber < 7)
            {
                lblBergerTaskExplanation.Content = "Расшифруйте:";
                lblBergerTask.Content            = BergerService.generateDecode();
            }
            else
            {
                MessageBox.Show("Вы уже закончили этот тест!");
            }
        }