//------------------------------------------------------
        private void UpdateVisuel()
        {
            KeyValuePair <Type, string>?kv = m_cmbTypeCalcul.SelectedValue as KeyValuePair <Type, string>?;

            if (kv != null)
            {
                if (m_calculEnCours == null || m_calculEnCours.GetType() != kv.Value.Key)
                {
                    m_calculEnCours = Activator.CreateInstance(kv.Value.Key, new object[0]) as IDataHotelCalcul;
                }
                Type typeEditeur = CAllocateurEditeurCalculDataHotel.GetTypeEditeur(kv.Value.Key);
                m_panelCalcul.ClearAndDisposeControls();
                m_editeurEnCours = null;
                if (typeEditeur != null)
                {
                    IEditeurCalculHotel editeur = Activator.CreateInstance(typeEditeur, new object[0]) as IEditeurCalculHotel;
                    if (editeur != null)
                    {
                        Control ctrl = editeur as Control;
                        CWin32Traducteur.Translate(ctrl);
                        ctrl.Parent = m_panelCalcul;
                        ctrl.Dock   = DockStyle.Fill;
                        editeur.Init(m_calculEnCours, m_query, m_table);
                    }
                    m_editeurEnCours = editeur;
                }
            }
        }
        //-------------------------------------------------
        public void Init(
            IDataHotelCalcul calcul,
            CEasyQuery query,
            CODEQTableFromDataHotel table)
        {
            m_calcul = calcul as CDataHotelCalculDuration;
            if (m_calcul == null)
            {
                m_calcul = new CDataHotelCalculDuration();
            }
            List <CColumnEQFromSource> cols   = new List <CColumnEQFromSource>();
            CColumnEQFromSource        colSel = null;

            foreach (IColumnDeEasyQuery colTest in table.Columns)
            {
                CColumnEQFromSource cs = colTest as CColumnEQFromSource;
                if (cs != null && colTest != null && colTest.DataType == typeof(double))
                {
                    cols.Add(cs);
                    if (cs.IdColumnSource == m_calcul.IdChampSource)
                    {
                        colSel = cs;
                    }
                }
            }
            m_cmbChampSource.SelectedValue = colSel;
            if (table != null)
            {
                m_cmbChampSource.ListDonnees       = cols;
                m_cmbChampSource.ProprieteAffichee = "ColumnName";
                m_cmbChampSource.AssureRemplissage();
                m_cmbChampSource.SelectedItem = colSel;
            }
            m_panelFiltre.Init(query, m_calcul.Filtre, table);
        }