private void AfficherActeursInactifs(bool etat)
        {
            m_panIntervenants.SuspendDrawing();
            if (etat)
            {
                m_bAfficherInactif = true;
                foreach (Control ctrl in m_panIntervenants.Controls)
                {
                    if (ctrl is CControlContact)
                    {
                        CControlContact ctrlInter = (CControlContact)ctrl;
                        if (!ctrlInter.ActeurActif)
                        {
                            ctrlInter.Visible = true;
                        }
                    }
                }

                m_hauteurOptimale += (m_nInactifs * m_nHauteurControl);
                m_hauteurOptimale += 2;                 //Marge

                Size = new Size(m_largeurOptimale, m_hauteurOptimale);
                if (ChangementTailleAffichage != null)
                {
                    ChangementTailleAffichage(this, new EventArgs());
                }
            }
            else
            {
                m_bAfficherInactif = false;
                foreach (Control ctrl in m_panIntervenants.Controls)
                {
                    if (ctrl is CControlContact)
                    {
                        CControlContact ctrlInter = (CControlContact)ctrl;
                        if (!ctrlInter.ActeurActif)
                        {
                            ctrlInter.Visible = false;
                        }
                    }
                }

                m_hauteurOptimale -= (m_nInactifs * m_nHauteurControl);
                m_hauteurOptimale -= 2;                 //Marge

                Size = new Size(m_largeurOptimale, m_hauteurOptimale);
                if (ChangementTailleAffichage != null)
                {
                    ChangementTailleAffichage(this, new EventArgs());
                }
            }
            m_panIntervenants.ResumeDrawing();
        }
        //------------------------------------------------
        public void Init(CActeursSelonProfil acteursSelonProf, IElementAContacts elemactc)
        {
            m_elemactc                    = elemactc;
            m_acteursSelonProf            = acteursSelonProf;
            m_bAfficherInactif            = false;
            m_chkAfficherInnActif.Checked = false;

            m_lnkProfilIntervenant.Text = m_acteursSelonProf.Profil.Libelle;

            //On récupère les acteurs associés à ce profil en prenant également les innactifs
            m_acteurs = m_acteursSelonProf.GetActeurs(m_elemactc, true);

            //On trie les acteurs par rapport à leur occupation actuelle
            //m_acteurs.Sort(new CActeur_OccupationActuelleComparer());

            //On récupère le modèle si il existe
            CModeleTexte modeleUtilise = acteursSelonProf.TypeElementAActeursPossibles.ModeleTexteContacts;

            //On ne prends que les acteurs qui travaillent actuellement
            int pos = 0;

            m_nInactifs = 0;
            int largeurEtat = 10;

            foreach (CActeur acteur in m_acteurs)
            {
                CControlContact ctrl = new CControlContact();
                ctrl.m_largeurEtat = largeurEtat;
                if (m_frmConteneur != null)
                {
                    ctrl.m_frmConteneur = m_frmConteneur;
                }

                ctrl.Init(acteur, modeleUtilise);
                largeurEtat = ctrl.m_largeurEtat;

                m_nHauteurControl = ctrl.HauteurOptimale;

                if (ctrl.LargeurOptimale > m_largeurOptimale)
                {
                    m_largeurOptimale  = ctrl.LargeurOptimale + 4;
                    m_hauteurOptimale += ctrl.HauteurOptimale;
                }
                else
                {
                    m_hauteurOptimale += ctrl.HauteurOptimale;
                }

                m_panIntervenants.Controls.Add(ctrl);
                ctrl.TabIndex = pos;
                ctrl.Dock     = DockStyle.Top;
                ctrl.BringToFront();

                if (!ctrl.ActeurActif)
                {
                    m_hauteurOptimale -= ctrl.HauteurOptimale;
                    m_nInactifs++;
                    ctrl.Visible = false;
                }
            }
            m_hauteurOptimale -= 2;             //marge
            Size = new Size(m_largeurOptimale, m_hauteurOptimale);
        }