Esempio n. 1
0
        private void ValiderQuestionnaire(object sender, RoutedEventArgs e)
        {
            //Calcul du nombre de points en fonction des réponse
            points = 0;
            if (inputQ1.IsChecked == true)
            {
                points += 3;
            }
            else
            {
                points += 1;
            }

            if (inputQ2.IsChecked == true)
            {
                points += 3;
            }
            else
            {
                points += 1;
            }

            if (inputQ3.IsChecked == true)
            {
                points += 3;
            }
            else
            {
                points += 1;
            }

            if (inputQ4.IsChecked == true)
            {
                points += 1;
            }
            else
            {
                points += 3;
            }

            if (inputQ5.IsChecked == true)
            {
                points += 1;
            }
            else
            {
                points += 3;
            }

            _questionnaireController.ValiderQuestionnaire(actAssoc, points);
            validerQuest(this, EventArgs.Empty);
        }