private void JokerOne_OnClick(object sender, RoutedEventArgs e)
 {
     if (Is50JokerUsed == false)
     {
         if (counterRounds < 5)
         {
             var currentQuestion = GetQuestion.GetEasyQuestion(counterRounds);
             currentQuestion.WrongAnswers[0] = "";
             currentQuestion.WrongAnswers[1] = "";
             Is50JokerUsed = true;
             CallEasyQuestions(currentQuestion);
         }
         else if (counterRounds >= 5 && counterRounds < 10)
         {
             var currentQuestion = GetQuestion.GetMediumQuestion(counterRounds - 5);
             currentQuestion.WrongAnswers[0] = "";
             currentQuestion.WrongAnswers[1] = "";
             Is50JokerUsed = true;
             CallMediumQuestions(currentQuestion);
         }
         else
         {
             var currentQuestion = GetQuestion.GetHardQuestion(counterRounds - 10);
             currentQuestion.WrongAnswers[0] = "";
             currentQuestion.WrongAnswers[1] = "";
             Is50JokerUsed = true;
             CallHardQuestions(currentQuestion);
         }
     }
     else
     {
         MessageBox.Show($"This Joker has been already used!");
     }
 }
        public MainWindow()
        {
            var currentQuestion = GetQuestion.GetEasyQuestion(counterRounds);

            InitializeComponent();
            CallEasyQuestions(currentQuestion);
        }
        private void CheckForAnswer(Button Answer)
        {
            bool check;

            if (counterRounds < 5)
            {
                check = Answer.Content == GetQuestion.GetEasyQuestion(counterRounds).Answer;
            }
            else if (counterRounds >= 5 && counterRounds < 10)
            {
                check = Answer.Content == GetQuestion.GetMediumQuestion(counterRounds - 5).Answer;
            }
            else
            {
                check = Answer.Content == GetQuestion.GetHardQuestion(counterRounds - 10).Answer;
            }
            if (check)
            {
                counterRounds++;
                if (counterRounds >= 5 && counterRounds < 10)
                {
                    var currentQuestion = GetQuestion.GetMediumQuestion(counterRounds - 5);
                    CallMediumQuestions(currentQuestion);
                }
                else if (counterRounds < 5)
                {
                    var currentQuestion = GetQuestion.GetEasyQuestion(counterRounds);
                    CallEasyQuestions(currentQuestion);
                }
                else if (counterRounds >= 10 && counterRounds < 15)
                {
                    var currentQuestion = GetQuestion.GetHardQuestion(counterRounds - 10);
                    CallHardQuestions(currentQuestion);
                }
                else
                {
                    MessageBox.Show("You won all the money there is, please spare us, Master!");
                }
            }
            else
            {
                Is50JokerUsed       = false;
                IsFriendJokerUsed   = false;
                IsAudienceJokerUsed = false;
                MessageBox.Show("Wrong аnswer!");
                counterRounds = 0;
                var currentQuestion = GetQuestion.GetEasyQuestion(counterRounds);
                CallEasyQuestions(currentQuestion);
            }
        }
 private void JokerTwo_OnClick(object sender, RoutedEventArgs e)
 {
     if (IsFriendJokerUsed == false)
     {
         if (counterRounds < 5)
         {
             var currentQuestion = GetQuestion.GetEasyQuestion(counterRounds);
             MessageBox.Show($"I think the answer is {currentQuestion.Answer}");
             IsFriendJokerUsed = true;
         }
         else if (counterRounds >= 5 && counterRounds < 10)
         {
             var           currentQuestion = GetQuestion.GetMediumQuestion(counterRounds - 5);
             List <string> answers         = new List <string>();
             answers.Add(currentQuestion.Answer);
             answers.Add(currentQuestion.WrongAnswers.ElementAt(0));
             Random r     = new Random();
             int    index = r.Next(2);
             MessageBox.Show($"I think the answer is {answers.ElementAt(index)}");
             IsFriendJokerUsed = true;
         }
         else
         {
             var           currentQuestion = GetQuestion.GetHardQuestion(counterRounds - 10);
             List <string> answers         = new List <string>();
             answers.Add(currentQuestion.Answer);
             answers.Add(currentQuestion.WrongAnswers.ElementAt(0));
             Random r     = new Random();
             int    index = r.Next(2);
             MessageBox.Show($"I think the answer is {answers.ElementAt(index)}");
             IsFriendJokerUsed = true;
         }
     }
     else
     {
         MessageBox.Show($"This Joker has been already used!");
     }
 }