예제 #1
0
        private void AssureCreationControlesFils()
        {
            if (m_slidingPanel == null)
            {
                return;
            }
            if (m_bControlesFilsCrees)
            {
                return;
            }
            m_controlesFils = m_createur.CreateChilds(m_slidingPanel, m_panelComposants, m_fournisseur);
            foreach (IControleWndFor2iWnd ctrl in Childs)
            {
                ctrl.WndContainer = this;
                if (m_slidingPanel.AdjustToContent && ctrl.Control != null)
                {
                    ctrl.Control.SizeChanged += new EventHandler(Control_SizeChanged);
                }
                if (m_gestionnaireReadOnly != null && ctrl.Control != null)
                {
                    m_gestionnaireReadOnly.AddControl(ctrl.Control);
                }
            }


            m_bControlesFilsCrees = true;
            OnChangeParentModeEdition(!m_createur.LockEdition);
            foreach (IControleWndFor2iWnd ctrl in Childs)
            {
                m_createur.UpdateVisibilityEtEnable(ctrl, EditedElement);
            }
        }
예제 #2
0
        //---------------------------------------------------------------
        public void CreateControle(
            CCreateur2iFormulaireV2 createur,
            C2iWnd wnd,
            Control parent,
            IFournisseurProprietesDynamiques fournisseurProprietes)
        {
            C2iWndTabPage tabPage = wnd as C2iWndTabPage;

            CCreateur2iFormulaireV2.AffecteProprietesCommunes(tabPage, this);

            this.Title      = tabPage.Text;
            this.Name       = tabPage.Text;
            m_controlesFils = createur.CreateChilds(tabPage, this, fournisseurProprietes);
            foreach (IControleWndFor2iWnd ctrl in Childs)
            {
                ctrl.WndContainer = this;
            }
            m_wndAssociee = wnd;
        }