private void refreshQuestionList()
        {
            CT_Get_Questionnaire CT = new CT_Get_Questionnaire();
            Message msg = new Message();

            if (this.QuestionTypeComboBox.SelectedIndex == 0)
            {
                this.type = CT_Get_Questionnaire.QuestionnaireType.Jeu;
                msg.Data[0] = this.type;
                this.questionsJeu = (QuestionJeu[])CT.Exec(msg).Data[0];

                this.QuestionListBox.ItemsSource = this.questionsJeu;
            }
            else
            {
                this.type = CT_Get_Questionnaire.QuestionnaireType.Orientation;
                msg.Data[0] = this.type;
                this.questionsOrientation = (QuestionOrientation[])CT.Exec(msg).Data[0];

                this.QuestionListBox.ItemsSource = this.questionsOrientation;

                foreach (QuestionOrientation q in this.questionsOrientation)
                {
                    foreach (ReponseOrientation rep in q.Reponses)
                    {
                        if (!this.MetierList.Contains(rep.Metier.Intitule))
                        {
                            this.MetierList.Add(rep.Metier.Intitule);
                            Projet_Client.Composant_de_communication.MessageManager.Debug(rep.Metier.Intitule);
                        }
                    }
                }

                foreach (ComboBox cb in this.ReponseMMetierComboBox)
                {
                    cb.ItemsSource = this.MetierList;
                }
            }
        }
        public Fenetre_Questionnaire_Orientation()
        {
            InitializeComponent();

            this.Title = "Questionnaire Jeu";
            reponseButtons = new System.Windows.Controls.RadioButton[4];
            reponseButtons[0] = this.Question1Button;
            reponseButtons[1] = this.Question2Button;
            reponseButtons[2] = this.Question3Button;
            reponseButtons[3] = this.Question4Button;

            CT_Get_Questionnaire CT = new CT_Get_Questionnaire();
            MessageSerializable.Message msg = new MessageSerializable.Message();
            msg.Data[0] = CT_Get_Questionnaire.QuestionnaireType.Orientation;
            this.questionnaire = (QuestionOrientation[])CT.Exec(msg).Data[0];
            if (this.questionnaire == null)
                return;
            this.maxIndex = this.questionnaire.Length - 1;
            this.reponses = new ReponseOrientation[this.questionnaire.Length];
            this.QuestionProgressBar.Minimum = 1;
            this.QuestionProgressBar.Maximum = this.maxIndex + 1;
            this.UpdateQuestion();
        }