public CResultAErreur MajChamps()
        {
            CResultAErreur result = CResultAErreur.True;

            foreach (Control ctrl in Controls)
            {
                CControleAffecteIntervenantsDeProfil ctrlA = ctrl as CControleAffecteIntervenantsDeProfil;
                if (ctrlA != null)
                {
                    result &= ctrlA.MajChamps();
                }
            }
            return(result);
        }
        public void Init(CIntervention intervention)
        {
            m_intervention = intervention;


            this.SuspendDrawing();

            List <CControleAffecteIntervenantsDeProfil> listeDispo = new List <CControleAffecteIntervenantsDeProfil>();

            foreach (Control ctrl in this.Controls)
            {
                if (ctrl is CControleAffecteIntervenantsDeProfil)
                {
                    ctrl.Visible = false;
                    listeDispo.Add((CControleAffecteIntervenantsDeProfil)ctrl);
                }
            }
            if (Intervention.TypeIntervention != null)
            {
                m_lastTypeInterventionInit = Intervention.TypeIntervention;
                foreach (CTypeIntervention_ProfilIntervenant relProfil in Intervention.TypeIntervention.RelationsProfilsIntervenants)
                {
                    CControleAffecteIntervenantsDeProfil ctrl = null;
                    if (listeDispo.Count > 0)
                    {
                        ctrl = listeDispo[0];
                        listeDispo.RemoveAt(0);
                    }
                    else
                    {
                        ctrl = new CControleAffecteIntervenantsDeProfil();
                        this.Controls.Add(ctrl);
                    }
                    ctrl.Visible = true;
                    ctrl.InitChamps(m_intervention, relProfil);
                    ctrl.LockEdition = !m_gestionnaireModeEdition.ModeEdition;
                    ctrl.Dock        = DockStyle.Top;
                    ctrl.BringToFront();
                }
            }
            this.ResumeDrawing();
        }